]> Dogcows Code - chaz/openbox/commitdiff
focus properly on desktop change
authorDana Jansens <danakj@orodu.net>
Sun, 22 Apr 2007 20:40:22 +0000 (20:40 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 22 Apr 2007 20:40:22 +0000 (20:40 +0000)
openbox/screen.c

index a54b2b564074f771ba2bacae86b61045413ac5fe..c0569c29406eadd79027b0d7631b8fa4346e4a62 100644 (file)
@@ -460,10 +460,14 @@ void screen_set_desktop(guint num)
         }
     }
 
-    /* reduce flicker by hiliting now rather than waiting for the server
-       FocusIn event */
-    if ((c = focus_fallback_target(TRUE, focus_client)))
+    /* have to try focus here because when you leave an empty desktop
+       there is no focus out to watch for */
+    if ((c = focus_fallback_target(TRUE, focus_client))) {
+        /* reduce flicker by hiliting now rather than waiting for the server
+           FocusIn event */
         frame_adjust_focus(c->frame, TRUE);
+        client_focus(c);
+    }
 
     event_ignore_queued_enters();
 }
This page took 0.023941 seconds and 4 git commands to generate.