summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-06-21 20:26:52 +1200
committerBossCode45 <human.cyborg42@gmail.com>2023-06-21 20:35:10 +1200
commitc4813b0ad3f8e0cc4f55b0f0fda8359eb9729417 (patch)
treecdeb26bb70aaa0b5782680908df176cff1ec9cfe /main.cpp
parent21b1840e0982929c1fa8acc5fadd203dccc94585 (diff)
downloadYATwm-c4813b0ad3f8e0cc4f55b0f0fda8359eb9729417.tar.gz
YATwm-c4813b0ad3f8e0cc4f55b0f0fda8359eb9729417.zip
feat: Fixed fullscreen stuff after rebasing in the config refactor
Also added stuff to the readme for it
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index af9210b..72ba368 100644
--- a/main.cpp
+++ b/main.cpp
@@ -579,7 +579,7 @@ const void nextMonitor(const CommandArg* argv)
XWarpPointer(dpy, root, root, 0, 0, 0, 0, screens[focusedScreen].x + screens[focusedScreen].w/2, screens[focusedScreen].y + screens[focusedScreen].h/2);
focusRoot(focusedWorkspaces[focusedScreen]);
}
-void fullscreen(const KeyArg arg)
+const void fullscreen(const CommandArg* arg)
{
Window focusedWindow;
int focusedRevert;
@@ -1018,6 +1018,7 @@ int main(int argc, char** argv)
commandsModule.addCommand("reload", reload, 0, {});
commandsModule.addCommand("wsDump", wsDump, 0, {});
commandsModule.addCommand("nextMonitor", nextMonitor, 0, {});
+ commandsModule.addCommand("fullscreen", fullscreen, 0, {});
//Config
std::vector<Err> cfgErr;