From 29d64bd04ecc54743ec8099a372a54a095dacdef Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 12 Dec 2009 21:31:41 +0100 Subject: [PATCH] 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). --- src/manage.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 */