]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus_cycle.c
when you focus a window, bring any modal children it has to that desktop
[chaz/openbox] / openbox / focus_cycle.c
index 46f5f058daff1bf5424973dec9693807ff5708e2..74cabac6fc65006b6eade9422ebcc5600baa4b30 100644 (file)
@@ -150,7 +150,11 @@ gboolean focus_cycle_target_valid(ObClient *ft,
                 !ft->skip_taskbar);
 
     /* it's not going to just send fous off somewhere else (modal window) */
-    ok = ok && ft == client_focus_target(ft);
+    {
+        ObClient *cft = client_focus_target(ft);
+        ok = ok && (ft == cft || (cft->desktop != DESKTOP_ALL &&
+                                  cft->desktop != ft->desktop));
+    }
 
     return ok;
 }
This page took 0.020013 seconds and 4 git commands to generate.