From: Dana Jansens Date: Sun, 13 May 2007 23:13:15 +0000 (+0000) Subject: only set focus_client to null if the window losing focus was the focus_client X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=66af88b27ccfbd00e1d52f3b0e994ae8a56898f8;p=chaz%2Fopenbox only set focus_client to null if the window losing focus was the focus_client --- diff --git a/openbox/event.c b/openbox/event.c index 31759113..c8b7e6dc 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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); }