From: Michael Stapelberg Date: Sat, 12 Dec 2009 20:31:41 +0000 (+0100) Subject: Bugfix: Correctly check for fullscreen windows when mapping new clients X-Git-Tag: 3.d-bf1~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=29d64bd04ecc54743ec8099a372a54a095dacdef;p=i3%2Fi3 Bugfix: Correctly check for fullscreen windows when mapping new clients CUR_CELL only works if you currently are in that container (not for windows which are assigned to invisible workspaces, for example). --- diff --git a/src/manage.c b/src/manage.c index 030a3883..da5ec175 100644 --- a/src/manage.c +++ b/src/manage.c @@ -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 */