From 4b3ea4d5244f568400ce3b8ddf6bdfa2767673e5 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 19 Aug 2009 10:56:42 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20crash=20when=20clients?= =?utf8?q?=20set=20an=20invalid=20leader=20hint?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/handlers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/handlers.c b/src/handlers.c index 61d1b711..2f98f019 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -1115,6 +1115,8 @@ int handle_clientleader_change(void *data, xcb_connection_t *conn, uint8_t state if (prop == NULL) { prop = xcb_get_property_reply(conn, xcb_get_property_unchecked(conn, false, window, WM_CLIENT_LEADER, WINDOW, 0, 32), NULL); + if (prop == NULL) + return 1; } Client *client = table_get(&by_child, window); -- 2.39.5