Bugfix: Unset global fullscreen clients from all workspaces (Thanks Sasha)

This commit is contained in:
Michael Stapelberg 2010-03-30 11:56:39 +02:00
parent 6a7b0f9277
commit 86e196c57b
1 changed files with 8 additions and 3 deletions

View File

@ -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);
/* If this was the fullscreen client, we need to unset it */
if (client->fullscreen)
client->workspace->fullscreen_client = NULL;
/* If this was the fullscreen client, we need to unset it from all
* workspaces it was on (global fullscreen) */
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 */
if (client->container != NULL) {