Bugfix: Don’t crash when clients set an invalid leader hint

This commit is contained in:
Michael Stapelberg 2009-08-19 10:56:42 +02:00
parent 44d9111d65
commit 4b3ea4d524
1 changed files with 2 additions and 0 deletions

View File

@ -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);