]> git.sur5r.net Git - i3/i3/commitdiff
Allow unsetting WM_CLIENT_LEADER (XCB_NONE is not an invalid value)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 5 Mar 2010 16:42:50 +0000 (17:42 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 5 Mar 2010 16:42:50 +0000 (17:42 +0100)
src/handlers.c

index 9c9f16f0836bb92b821603a9648c8eb50f35df03..37ae0e54b10dd6dea74e5cb5b891f7da13f3cbdc 100644 (file)
@@ -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);