]> git.sur5r.net Git - i3/i3/blobdiff - src/nc.c
re-add fullscreen mode
[i3/i3] / src / nc.c
index 44a434616d9af432464f753324bcd0d60ef601e2..2b523ee56232f7a5d3c9ddd7e322b15e96a38e43 100644 (file)
--- a/src/nc.c
+++ b/src/nc.c
@@ -89,8 +89,11 @@ void parse_command(const char *command) {
         workspace_show(command + strlen("workspace "));
     else if (strcasecmp(command, "stack") == 0) {
         focused->layout = L_STACKED;
-        x_push_changes(croot);
-
+    }
+    else if (strcasecmp(command, "fullscreen") == 0) {
+        if (focused->fullscreen_mode == CF_NONE)
+            focused->fullscreen_mode = CF_OUTPUT;
+        else focused->fullscreen_mode = CF_NONE;
     }
     else if (strcasecmp(command, "move before h") == 0)
         tree_move('p', HORIZ);