summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
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;