From: Michael Stapelberg Date: Tue, 30 Mar 2010 09:56:39 +0000 (+0200) Subject: Bugfix: Unset global fullscreen clients from all workspaces (Thanks Sasha) X-Git-Tag: 3.e~6^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=86e196c57bf6780292a6143a9d294785194fe93a;p=i3%2Fi3 Bugfix: Unset global fullscreen clients from all workspaces (Thanks Sasha) --- diff --git a/src/handlers.c b/src/handlers.c index d9fa0d2d..a173777c 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -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) {