]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Fix NULL-pointer dereferencing introduced by commit 874941 (Thanks tsdh)
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 27 Jul 2009 22:43:52 +0000 (00:43 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 27 Jul 2009 22:44:57 +0000 (00:44 +0200)
src/util.c

index 108bf4a1327e171a8b07569baf21b1320ac7729e..48bf43a0fefbc96dcf5b0ab0230e3ac1de30d05c 100644 (file)
@@ -369,7 +369,7 @@ void set_focus(xcb_connection_t *conn, Client *client, bool set_anyways) {
 
         /* If the last client was a floating client, we need to go to the next
          * tiling client in stack and re-decorate it. */
-        if (client_is_floating(old_client)) {
+        if (old_client != NULL && client_is_floating(old_client)) {
                 LOG("Coming from floating client, searching next tiling...\n");
                 Client *current;
                 SLIST_FOREACH(current, &(client->workspace->focus_stack), focus_clients) {