]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly remove fullscreen floating clients when unmapping (Thanks Volker)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Jun 2009 02:15:21 +0000 (04:15 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Jun 2009 02:15:21 +0000 (04:15 +0200)
src/handlers.c

index 383207f81639d242b37aa271122d67c182669e3c..209422d4efda976cdbcecada2fd4fe67009a23f0 100644 (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);