]> Dogcows Code - chaz/openbox/commitdiff
dont drop out of dirfocus when there is no new target to be found
authorDana Jansens <danakj@orodu.net>
Sun, 21 Sep 2003 17:03:17 +0000 (17:03 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 21 Sep 2003 17:03:17 +0000 (17:03 +0000)
openbox/focus.c

index 36ccbea30281fe820bab29e3b26282511249fcbd..523c7b5d057cf262181a65f38bffe2f20c71475a 100644 (file)
@@ -398,11 +398,14 @@ void focus_directional_cycle(ObDirection dir,
             focus_cycle_target = ft;
             frame_adjust_focus(focus_cycle_target->frame, TRUE);
         }
-        popup_cycle(ft, dialog);
+    }
+    if (focus_cycle_target) {
+        popup_cycle(focus_cycle_target, dialog);
         if (dialog)
             return;
     }
 
+
 done_cycle:
     if (done && focus_cycle_target)
         client_activate(focus_cycle_target, FALSE);
This page took 0.024546 seconds and 4 git commands to generate.