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 4afe65eea2
commit c6c0862e24
1 changed files with 6 additions and 6 deletions

View File

@ -350,13 +350,13 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
}
}
if (CUR_CELL->workspace->fullscreen_client != NULL) {
if (new->container == CUR_CELL) {
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 */
if (!new->dock && !client_is_floating(new)) {