From c8591749659badcd4417379e6049409906c407ec Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 25 Feb 2009 17:44:17 +0100 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Don=E2=80=99t=20call=20set=5Ffocus=20?= =?UTF-8?q?when=20to=5Ffocus=20is=20NULL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handlers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handlers.c b/src/handlers.c index 04f427db..a147e2f4 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -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);