]> Dogcows Code - chaz/openbox/commitdiff
only do sloppy focus/raise if the client is not already focused
authorDana Jansens <danakj@orodu.net>
Mon, 29 Sep 2003 08:02:16 +0000 (08:02 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 29 Sep 2003 08:02:16 +0000 (08:02 +0000)
openbox/event.c

index 6503ba0af288e058c8b99ff1b7246d186ac5490d..918024969f4cda9387894703c7b82e2594fef37c 100644 (file)
@@ -1259,9 +1259,11 @@ static gboolean focus_delay_func(gpointer data)
 {
     ObClient *c = data;
 
-    client_focus(c);
-    if (config_focus_raise)
-        client_raise(c);
+    if (focus_client != c) {
+        client_focus(c);
+        if (config_focus_raise)
+            client_raise(c);
+    }
     return FALSE; /* no repeat */
 }
 
This page took 0.023643 seconds and 4 git commands to generate.