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
4afe65eea2
commit
c6c0862e24
|
@ -350,13 +350,13 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CUR_CELL->workspace->fullscreen_client != NULL) {
|
if (new->workspace->fullscreen_client != NULL) {
|
||||||
if (new->container == CUR_CELL) {
|
LOG("Setting below fullscreen window\n");
|
||||||
|
|
||||||
/* If we are in fullscreen, we should lower the window to not be annoying */
|
/* If we are in fullscreen, we should lower the window to not be annoying */
|
||||||
uint32_t values[] = { XCB_STACK_MODE_BELOW };
|
uint32_t values[] = { XCB_STACK_MODE_BELOW };
|
||||||
xcb_configure_window(conn, new->frame, XCB_CONFIG_WINDOW_STACK_MODE, values);
|
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 */
|
/* Insert into the currently active container, if it’s not a dock window */
|
||||||
if (!new->dock && !client_is_floating(new)) {
|
if (!new->dock && !client_is_floating(new)) {
|
||||||
|
|
Loading…
Reference in New Issue