]> Dogcows Code - chaz/openbox/commitdiff
set focus_hilite when switching desktops and hjilitin a window which isnt focused yet
authorDana Jansens <danakj@orodu.net>
Wed, 8 Oct 2003 18:28:51 +0000 (18:28 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 8 Oct 2003 18:28:51 +0000 (18:28 +0000)
openbox/screen.c

index f7c71abe07d0445c166595ea5b6889b9f6f93ff2..d2fe9c5bc4196f2c7e30f9993d2633fcf600f6ad 100644 (file)
@@ -418,7 +418,6 @@ void screen_set_desktop(guint num)
 {
     GList *it;
     guint old;
-    ObClient *target;
      
     g_assert(num < screen_num_desktops);
 
@@ -458,17 +457,17 @@ void screen_set_desktop(guint num)
 
     event_ignore_queued_enters();
 
-    target = focus_fallback_target(OB_FOCUS_FALLBACK_NOFOCUS);
-    if (target) {
-        frame_adjust_focus(target->frame, TRUE);
+    focus_hilite = focus_fallback_target(OB_FOCUS_FALLBACK_NOFOCUS);
+    if (focus_hilite) {
+        frame_adjust_focus(focus_hilite->frame, TRUE);
 
         /*!
           When this focus_client check is not used, you can end up with races,
           as demonstrated with gnome-panel, sometmies the window you click on
           another desktop ends up losing focus cuz of the focus change here.
         */
-        if (!focus_client)
-            client_focus(target);
+        /*if (!focus_client)*/
+        client_focus(focus_hilite);
     }
 }
 
This page took 0.02936 seconds and 4 git commands to generate.