From c4813b0ad3f8e0cc4f55b0f0fda8359eb9729417 Mon Sep 17 00:00:00 2001 From: BossCode45 Date: Wed, 21 Jun 2023 20:26:52 +1200 Subject: feat: Fixed fullscreen stuff after rebasing in the config refactor Also added stuff to the readme for it --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.cpp') 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 cfgErr; -- cgit v1.2.3