always set focus_out, since a focusin can come first and mess up the old logic

This commit is contained in:
Dana Jansens 2003-10-03 07:24:33 +00:00
parent 2572f111e0
commit 2a2008e837

View file

@ -597,10 +597,9 @@ static void event_handle_client(ObClient *client, XEvent *e)
e->xfocus.window, client->window, e->xfocus.window, client->window,
e->xfocus.mode, e->xfocus.detail); e->xfocus.mode, e->xfocus.detail);
#endif #endif
focus_out = client;
if (focus_in == client) if (focus_in == client)
focus_in = NULL; focus_in = NULL;
if (client == focus_client)
focus_out = client;
break; break;
case LeaveNotify: case LeaveNotify:
con = frame_context(client, e->xcrossing.window); con = frame_context(client, e->xcrossing.window);