]> Dogcows Code - chaz/openbox/commitdiff
dont refocus the focused window, that just causes so many problems (with alt-tab :)
authorDana Jansens <danakj@orodu.net>
Fri, 23 May 2003 20:17:22 +0000 (20:17 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 23 May 2003 20:17:22 +0000 (20:17 +0000)
openbox/event.c

index 54db6cc83b2fc0834440b090ce08b92ac46d66b3..478567f3f3d2051d285bc7d8708586f44d90a643 100644 (file)
@@ -581,8 +581,10 @@ static void event_handle_client(Client *client, XEvent *e)
 #ifdef DEBUG_FOCUS
         g_message("FocusIn on client for %lx", client->window);
 #endif
-        focus_set_client(client);
-        frame_adjust_focus(client->frame, TRUE);
+        if (client != focus_client) {
+            focus_set_client(client);
+            frame_adjust_focus(client->frame, TRUE);
+        }
         break;
     case FocusOut:
 #ifdef DEBUG_FOCUS
This page took 0.023599 seconds and 4 git commands to generate.