Bugfix: Unset global fullscreen clients from all workspaces (Thanks Sasha)
This commit is contained in:
parent
6a7b0f9277
commit
86e196c57b
|
@ -486,9 +486,14 @@ int handle_unmap_notify_event(void *data, xcb_connection_t *conn, xcb_unmap_noti
|
||||||
|
|
||||||
client = table_remove(&by_child, event->window);
|
client = table_remove(&by_child, event->window);
|
||||||
|
|
||||||
/* If this was the fullscreen client, we need to unset it */
|
/* If this was the fullscreen client, we need to unset it from all
|
||||||
if (client->fullscreen)
|
* workspaces it was on (global fullscreen) */
|
||||||
client->workspace->fullscreen_client = NULL;
|
if (client->fullscreen) {
|
||||||
|
Workspace *ws;
|
||||||
|
TAILQ_FOREACH(ws, workspaces, workspaces)
|
||||||
|
if (ws->fullscreen_client == client)
|
||||||
|
ws->fullscreen_client = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Clients without a container are either floating or dock windows */
|
/* Clients without a container are either floating or dock windows */
|
||||||
if (client->container != NULL) {
|
if (client->container != NULL) {
|
||||||
|
|
Loading…
Reference in New Issue