]> Dogcows Code - chaz/openbox/commitdiff
only cycle to visible windows
authorDana Jansens <danakj@orodu.net>
Thu, 17 Apr 2003 01:24:53 +0000 (01:24 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 17 Apr 2003 01:24:53 +0000 (01:24 +0000)
openbox/focus.c

index e5d3942f165260a7a6372823b973dca13cd0002a..04ef7cd4b37ca63665c77d8d856e88346d1ca567 100644 (file)
@@ -161,7 +161,9 @@ void focus_fallback(FallbackType type)
 
     for (it = focus_order[screen_desktop]; it != NULL; it = it->next)
         if (type != Fallback_Unfocusing || it->data != old)
-            if (client_normal(it->data) && client_focus(it->data))
+            if (client_normal(it->data) &&
+                ((Client*)it->data)->frame->visible &&
+                client_focus(it->data))
                 return;
 
     /* nothing to focus */
@@ -207,7 +209,7 @@ Client *focus_cycle(gboolean forward, gboolean linear, gboolean done,
         }
         ft = client_focus_target(it->data);
         if (ft == it->data && focus_client != ft && client_normal(ft) &&
-            client_focus(ft)) {
+            ft->frame->visible && client_focus(ft)) {
             noreorder++; /* avoid reordering the focus_order */
             return ft;
         }
This page took 0.02799 seconds and 4 git commands to generate.