only set focus_client to null if the window losing focus was the focus_client

This commit is contained in:
Dana Jansens 2007-05-13 23:13:15 +00:00
parent 0c173e1577
commit 66af88b27c

View file

@ -573,7 +573,8 @@ static void event_process(const XEvent *ec, gpointer data)
if (client && !nomove) { if (client && !nomove) {
frame_adjust_focus(client->frame, FALSE); 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 */ /* focus_set_client has already been called for sure */
client_calc_layer(client); client_calc_layer(client);
} }