Bugfix: Correctly remove fullscreen floating clients when unmapping (Thanks Volker)

This commit is contained in:
Michael Stapelberg 2009-06-26 04:15:21 +02:00
parent c2f01fdd84
commit 27a418f454

View File

@ -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);