]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t call set_focus when to_focus is NULL
authorMichael Stapelberg <michael+git@stapelberg.de>
Wed, 25 Feb 2009 16:44:17 +0000 (17:44 +0100)
committerMichael Stapelberg <michael+git@stapelberg.de>
Wed, 25 Feb 2009 16:44:17 +0000 (17:44 +0100)
src/handlers.c

index 04f427dbf7781bb949a909572ebfaea2c0542cc6..a147e2f41192cdcd24a617d7f4e9ec35d455a25f 100644 (file)
@@ -335,7 +335,8 @@ int handle_unmap_notify_event(void *data, xcb_connection_t *c, xcb_unmap_notify_
                 if (client->container->currently_focused == client)
                         client->container->currently_focused = to_focus;
                 CIRCLEQ_REMOVE(&(client->container->clients), client, clients);
-                set_focus(c, to_focus);
+                if (to_focus != NULL)
+                        set_focus(c, to_focus);
         }
 
         printf("child of 0x%08x.\n", client->frame);