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.e~6^2~207 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c6c0862e24d244b38c46559ad401daae0547e7da;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 */