]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus_cycle.c
Make the Focus action stop all interactive actions (Fixes bug #4436)
[chaz/openbox] / openbox / focus_cycle.c
index 8d0474978f8faef00a4467f2cbba1f1e583e9337..c92b5a54fe7c148221aaf01204cf857e72ab2e73 100644 (file)
@@ -55,9 +55,10 @@ void focus_cycle_stop(ObClient *ifclient)
 {
     /* stop focus cycling if the given client is a valid focus target,
        and so the cycling is being disrupted */
-    if (focus_cycle_target && ifclient &&
-        (ifclient == focus_cycle_target ||
-         focus_cycle_popup_is_showing(ifclient)))
+    if (focus_cycle_target &&
+        ((ifclient && (ifclient == focus_cycle_target ||
+                       focus_cycle_popup_is_showing(ifclient))) ||
+         !ifclient))
     {
         focus_cycle(TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE,TRUE);
         focus_directional_cycle(0, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE);
This page took 0.019847 seconds and 4 git commands to generate.