]> Dogcows Code - chaz/openbox/commitdiff
add a comment and make it smarter about when to let you focus cycle to windows with...
authorDana Jansens <danakj@orodu.net>
Mon, 28 May 2007 00:38:44 +0000 (00:38 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 28 May 2007 00:38:44 +0000 (00:38 +0000)
openbox/focus_cycle.c

index 74cabac6fc65006b6eade9422ebcc5600baa4b30..7549fbe51e2dce5905a976ff1dadcf360d9f9dae 100644 (file)
@@ -149,11 +149,16 @@ gboolean focus_cycle_target_valid(ObClient *ft,
                 ft->modal ||
                 !ft->skip_taskbar);
 
-    /* it's not going to just send fous off somewhere else (modal window) */
+    /* it's not going to just send focus off somewhere else (modal window),
+       unless that modal window is not one of our valid targets, then let
+       you choose this window and bring the modal one here */
     {
         ObClient *cft = client_focus_target(ft);
-        ok = ok && (ft == cft || (cft->desktop != DESKTOP_ALL &&
-                                  cft->desktop != ft->desktop));
+        ok = ok && (ft == cft || !focus_cycle_target_valid(cft,
+                                                           iconic_windows,
+                                                           all_desktops,
+                                                           dock_windows,
+                                                           desktop_windows));
     }
 
     return ok;
This page took 0.02526 seconds and 4 git commands to generate.