]> Dogcows Code - chaz/openbox/commitdiff
only set focus_client to null if the window losing focus was the focus_client
authorDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 23:13:15 +0000 (23:13 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 23:13:15 +0000 (23:13 +0000)
openbox/event.c

index 31759113eac852e2c27cfdd6427310ca03e533be..c8b7e6dcce92d9bcea85815233036b40022e4501 100644 (file)
@@ -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);
         }
This page took 0.02553 seconds and 4 git commands to generate.