From 9f02fb7a3a6fb008b8f62ceb4e9ffa3e4698d632 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 10 Sep 2009 16:27:50 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20handle=20WM=5FHINTS=20?= =?utf8?q?if=20it=20is=20not=20set=20(Thanks=20mxf)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/handlers.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/handlers.c b/src/handlers.c index da051ef6..3d7f4f05 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -1116,9 +1116,11 @@ int handle_hints(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t xcb_wm_hints_t hints; if (reply != NULL) - xcb_get_wm_hints_from_reply(&hints, reply); + if (!xcb_get_wm_hints_from_reply(&hints, reply)) + return 1; else - xcb_get_wm_hints_reply(conn, xcb_get_wm_hints_unchecked(conn, client->child), &hints, NULL); + if (!xcb_get_wm_hints_reply(conn, xcb_get_wm_hints_unchecked(conn, client->child), &hints, NULL)) + return 1; /* Update the flag on the client directly */ client->urgent = (xcb_wm_hints_get_urgency(&hints) != 0); -- 2.39.5