only set focus_client to null if the window losing focus was the focus_client
This commit is contained in:
parent
0c173e1577
commit
66af88b27c
1 changed files with 2 additions and 1 deletions
|
@ -573,7 +573,8 @@ static void event_process(const XEvent *ec, gpointer data)
|
|||
|
||||
if (client && !nomove) {
|
||||
frame_adjust_focus(client->frame, FALSE);
|
||||
focus_set_client(NULL);
|
||||
if (client == focus_client)
|
||||
focus_set_client(NULL);
|
||||
/* focus_set_client has already been called for sure */
|
||||
client_calc_layer(client);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue