mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-12-24 18:39:47 +01:00
Fixed #20
This commit is contained in:
parent
3757772264
commit
0eb2bbe0ad
2 changed files with 8 additions and 4 deletions
|
@ -48,7 +48,9 @@ void ConfigManager::init() {
|
|||
isFirstLaunch = true;
|
||||
}
|
||||
|
||||
loadConfigLoadVars();
|
||||
lastModifyTime = 0;
|
||||
|
||||
tick();
|
||||
applyKeybindsToX();
|
||||
}
|
||||
|
||||
|
@ -122,6 +124,8 @@ void handleBind(const std::string& command, const std::string& value) {
|
|||
|
||||
void handleRawExec(const std::string& command, const std::string& args) {
|
||||
// Exec in the background dont wait for it.
|
||||
RETURNIFBAR;
|
||||
|
||||
if (fork() == 0) {
|
||||
execl("/bin/sh", "/bin/sh", "-c", args.c_str(), nullptr);
|
||||
|
||||
|
|
|
@ -166,9 +166,11 @@ void CWindowManager::setupManager() {
|
|||
xcb_change_window_attributes_checked(DisplayConnection, Screen->root,
|
||||
XCB_CW_EVENT_MASK, Values);
|
||||
|
||||
Debug::log(LOG, "Root done.");
|
||||
|
||||
ConfigManager::init();
|
||||
|
||||
Debug::log(LOG, "Keys done.");
|
||||
Debug::log(LOG, "Config done.");
|
||||
|
||||
// Add workspaces to the monitors
|
||||
for (long unsigned int i = 0; i < monitors.size(); ++i) {
|
||||
|
@ -190,8 +192,6 @@ void CWindowManager::setupManager() {
|
|||
|
||||
Debug::log(LOG, "Thread (Parent) done.");
|
||||
|
||||
ConfigManager::loadConfigLoadVars();
|
||||
|
||||
updateRootCursor();
|
||||
|
||||
Debug::log(LOG, "Finished setup!");
|
||||
|
|
Loading…
Reference in a new issue