From fee5add7215415c4e8b902a87f935a22dcaf9ea2 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 28 Jul 2009 00:43:52 +0200 Subject: [PATCH] Bugfix: Fix NULL-pointer dereferencing introduced by commit 874941 (Thanks tsdh) --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index f2e1a96f..58722995 100644 --- a/src/util.c +++ b/src/util.c @@ -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) {