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:
parent
01f7250f6a
commit
29d64bd04e
12
src/manage.c
12
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user