]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly check for fullscreen windows when mapping new clients
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 12 Dec 2009 20:31:41 +0000 (21:31 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 12 Dec 2009 20:32:47 +0000 (21:32 +0100)
CUR_CELL only works if you currently are in that container (not for
windows which are assigned to invisible workspaces, for example).

src/manage.c

index 030a3883f6fb139e6cc4b11b26e9b4713d79e506..da5ec175a8f72fe6df4e5896c643559459a54540 100644 (file)
@@ -350,12 +350,12 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
                 }
         }
 
-        if (CUR_CELL->workspace->fullscreen_client != NULL) {
-                if (new->container == CUR_CELL) {
-                        /* If we are in fullscreen, we should lower the window to not be annoying */
-                        uint32_t values[] = { XCB_STACK_MODE_BELOW };
-                        xcb_configure_window(conn, new->frame, XCB_CONFIG_WINDOW_STACK_MODE, values);
-                }
+        if (new->workspace->fullscreen_client != NULL) {
+                LOG("Setting below fullscreen window\n");
+
+                /* If we are in fullscreen, we should lower the window to not be annoying */
+                uint32_t values[] = { XCB_STACK_MODE_BELOW };
+                xcb_configure_window(conn, new->frame, XCB_CONFIG_WINDOW_STACK_MODE, values);
         }
 
         /* Insert into the currently active container, if it’s not a dock window */