Bugfix: Don’t call set_focus when to_focus is NULL
This commit is contained in:
@ -335,6 +335,7 @@ int handle_unmap_notify_event(void *data, xcb_connection_t *c, xcb_unmap_notify_
|
||||
if (client->container->currently_focused == client)
|
||||
client->container->currently_focused = to_focus;
|
||||
CIRCLEQ_REMOVE(&(client->container->clients), client, clients);
|
||||
if (to_focus != NULL)
|
||||
set_focus(c, to_focus);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user