Bugfix: Don’t crash if the user didn’t click into a client

This commit is contained in:
Michael Stapelberg 2009-02-11 19:04:28 +01:00
parent 80467796f2
commit f9981f09f1

View File

@ -1054,6 +1054,8 @@ static int handle_button_press(void *ignored, xcb_connection_t *conn, xcb_button
printf("button press!\n");
/* This was either a focus for a clients parent (= titlebar)… */
Client *client = table_get(byChild, event->event);
if (client == NULL)
return 1;
printf("gots win %08x\n", client);