Bugfix: Don’t crash if the user didn’t click into a client
This commit is contained in:
parent
80467796f2
commit
f9981f09f1
2
mainx.c
2
mainx.c
|
@ -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 client’s parent (= titlebar)… */
|
||||
Client *client = table_get(byChild, event->event);
|
||||
if (client == NULL)
|
||||
return 1;
|
||||
|
||||
printf("gots win %08x\n", client);
|
||||
|
||||
|
|
Loading…
Reference in New Issue