From 27a418f4544b667400f8ecafaf6a33c33bda4007 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 26 Jun 2009 04:15:21 +0200 Subject: [PATCH] Bugfix: Correctly remove fullscreen floating clients when unmapping (Thanks Volker) --- src/handlers.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/handlers.c b/src/handlers.c index 383207f8..209422d4 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -580,14 +580,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; + /* Clients without a container are either floating or dock windows */ if (client->container != NULL) { Container *con = client->container; - /* If this was the fullscreen client, we need to unset it */ - if (client->fullscreen) - con->workspace->fullscreen_client = NULL; - /* Remove the client from the list of clients */ client_remove_from_container(conn, client, con, true); -- 2.39.5