This commit is contained in:
vaxerski 2021-12-23 22:40:41 +01:00
parent 3757772264
commit 0eb2bbe0ad
2 changed files with 8 additions and 4 deletions

View file

@ -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);

View file

@ -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!");