]> git.sur5r.net Git - i3/i3/commitdiff
Correctly update the _NET_WM_STATE hint when *not* going into fullscreen (when alread...
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 28 Nov 2010 21:07:54 +0000 (22:07 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 28 Nov 2010 21:07:54 +0000 (22:07 +0100)
src/con.c

index 80f69a6e883d67b3d1a936933c455ebfb2048a43..ba15279e8c35ad483e658f97e12804f117b50dc6 100644 (file)
--- a/src/con.c
+++ b/src/con.c
@@ -382,11 +382,10 @@ void con_toggle_fullscreen(Con *con) {
             LOG("Not entering fullscreen mode, container (%p/%s) "
                 "already is in fullscreen mode\n",
                 fullscreen, fullscreen->name);
-            return;
+        } else {
+            /* 2: enable fullscreen */
+            con->fullscreen_mode = CF_OUTPUT;
         }
-
-        /* 2: enable fullscreen */
-        con->fullscreen_mode = CF_OUTPUT;
     } else {
         /* 1: disable fullscreen */
         con->fullscreen_mode = CF_NONE;