From: Michael Stapelberg Date: Fri, 5 Mar 2010 16:42:50 +0000 (+0100) Subject: Allow unsetting WM_CLIENT_LEADER (XCB_NONE is not an invalid value) X-Git-Tag: 3.e~6^2~117 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=40475b250f40ce9c390211545a58b12d1c37d4c1;p=i3%2Fi3 Allow unsetting WM_CLIENT_LEADER (XCB_NONE is not an invalid value) --- diff --git a/src/handlers.c b/src/handlers.c index 9c9f16f0..37ae0e54 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -1060,7 +1060,7 @@ int handle_clientleader_change(void *data, xcb_connection_t *conn, uint8_t state return 1; xcb_window_t *leader = xcb_get_property_value(prop); - if (leader == NULL || *leader == 0) + if (leader == NULL) return 1; DLOG("Client leader changed to %08x\n", *leader);