Allow unsetting WM_CLIENT_LEADER (XCB_NONE is not an invalid value)

This commit is contained in:
Michael Stapelberg 2010-03-05 17:42:50 +01:00
parent 8d648b4e37
commit 40475b250f
1 changed files with 1 additions and 1 deletions

View File

@ -1060,7 +1060,7 @@ int handle_clientleader_change(void *data, xcb_connection_t *conn, uint8_t state
return 1; return 1;
xcb_window_t *leader = xcb_get_property_value(prop); xcb_window_t *leader = xcb_get_property_value(prop);
if (leader == NULL || *leader == 0) if (leader == NULL)
return 1; return 1;
DLOG("Client leader changed to %08x\n", *leader); DLOG("Client leader changed to %08x\n", *leader);