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).
This commit is contained in:
Michael Stapelberg 2009-12-12 21:31:41 +01:00
parent 01f7250f6a
commit 29d64bd04e

View 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 its not a dock window */