]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: When a window is fullscreen, put new windows after that one in focus stack...
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Jun 2009 02:39:59 +0000 (04:39 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Jun 2009 02:39:59 +0000 (04:39 +0200)
src/manage.c

index 203a66d913ffce5d3cd40a6bd2a4ecb5b54f96db..d4641dbc6098ddbde218024a32b77717816a056c 100644 (file)
@@ -371,7 +371,9 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
                         CIRCLEQ_INSERT_AFTER(&(new->container->clients), old_focused, new, clients);
                 else CIRCLEQ_INSERT_TAIL(&(new->container->clients), new, clients);
 
-                SLIST_INSERT_HEAD(&(new->container->workspace->focus_stack), new, focus_clients);
+                if (new->container->workspace->fullscreen_client != NULL)
+                        SLIST_INSERT_AFTER(new->container->workspace->fullscreen_client, new, focus_clients);
+                else SLIST_INSERT_HEAD(&(new->container->workspace->focus_stack), new, focus_clients);
 
                 client_set_below_floating(conn, new);
         }