]> Dogcows Code - chaz/openbox/blobdiff - openbox/screen.c
focus properly on desktop change
[chaz/openbox] / 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.02126 seconds and 4 git commands to generate.