]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t crash when clients set an invalid leader hint
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 19 Aug 2009 08:56:42 +0000 (10:56 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 19 Aug 2009 08:56:42 +0000 (10:56 +0200)
src/handlers.c

index 61d1b711420a1cc29070519369f2608a13364058..2f98f019a673f8bc834e0385c6cbae5a1faf4f36 100644 (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);