diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-06-05 20:35:32 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-06-05 20:35:32 +1200 |
| commit | 0b539b0b0278f2d7c2b7629e6d28d8463cba2688 (patch) | |
| tree | 3a0b47f09dc58f2c14ba06443f2a5fe88d166e2f /main.cpp | |
| parent | e9cc5756dbb0a2d079a7b5e3438d79945f819df5 (diff) | |
| download | YATwm-0b539b0b0278f2d7c2b7629e6d28d8463cba2688.tar.gz YATwm-0b539b0b0278f2d7c2b7629e6d28d8463cba2688.zip | |
Added a very basic config, and fixed some stuff
NOTE: for some reason toggling doesn't work anymore
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -47,11 +47,13 @@ std::ofstream yatlog; Globals globals; Display*& dpy = globals.dpy; -Window& root = globals.root; +Window &root = globals.root; + +void updateMousePos(); CommandsModule commandsModule; Config cfg(commandsModule); -KeybindsModule keybindsModule(commandsModule, cfg, globals); +KeybindsModule keybindsModule(commandsModule, cfg, globals, &updateMousePos); int sW, sH; int bH; @@ -82,7 +84,6 @@ int currWS = 1; // Usefull functions int FFCF(int sID); void detectScreens(); -void updateMousePos(); void focusRoot(int root); void handleConfigErrs(vector<Err> cfgErrs); @@ -270,7 +271,7 @@ void cWS(int newWS) //log("Changing WS with keybind"); - for(int i = 0; i < nscreens; i++) + for(int i = 0; i < cfg.workspaces[newWS - 1].screenPreferencesc; i++) { if(nscreens > cfg.workspaces[newWS - 1].screenPreferences[i]) { @@ -304,6 +305,8 @@ void cWS(int newWS) //log("Roots tiled"); XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); + cout << focusedWorkspaces[0] << endl; + //EWMH setCurrentDesktop(currWS); } |
