]> git.sur5r.net Git - i3/i3/commitdiff
Don’t switch focus when in fullscreen mode
authorMichael Stapelberg <michael+x200@stapelberg.de>
Fri, 6 Mar 2009 15:53:47 +0000 (16:53 +0100)
committerMichael Stapelberg <michael+x200@stapelberg.de>
Fri, 6 Mar 2009 15:53:47 +0000 (16:53 +0100)
src/commands.c

index f03b36a7b7acc3fbf93480fdb4da91a1c691ac6a..d7d0fa901eb5589ea0b352ba4445aa40af450e74 100644 (file)
@@ -65,6 +65,11 @@ static void focus_thing(xcb_connection_t *conn, direction_t direction, thing_t t
         /* There always is a container. If not, current_col or current_row is wrong */
         assert(container != NULL);
 
+        if (container->workspace->fullscreen_client != NULL) {
+                LOG("You're in fullscreen mode. Won't switch focus\n");
+                return;
+        }
+
         /* TODO: for horizontal default layout, this has to be expanded to LEFT/RIGHT */
         if (direction == D_UP || direction == D_DOWN) {
                 if (thing == THING_WINDOW)