From f9981f09f1c1ed5325aa9f64c2a5b8bf71513545 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 11 Feb 2009 19:04:28 +0100 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Don=E2=80=99t=20crash=20if=20the=20us?= =?UTF-8?q?er=20didn=E2=80=99t=20click=20into=20a=20client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mainx.c b/mainx.c index 15fd3cc6..f44816dc 100644 --- a/mainx.c +++ b/mainx.c @@ -1054,6 +1054,8 @@ static int handle_button_press(void *ignored, xcb_connection_t *conn, xcb_button printf("button press!\n"); /* This was either a focus for a client’s parent (= titlebar)… */ Client *client = table_get(byChild, event->event); + if (client == NULL) + return 1; printf("gots win %08x\n", client);