]> Dogcows Code - chaz/openbox/commitdiff
only cycle focus to normal windows
authorDana Jansens <danakj@orodu.net>
Tue, 8 Apr 2003 04:48:39 +0000 (04:48 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 8 Apr 2003 04:48:39 +0000 (04:48 +0000)
openbox/focus.c

index b0cd735debe608bd47d0cfe4b43ebd72d3627f21..d0886a50f7cccda5951dc91c3aba2f6472abefd6 100644 (file)
@@ -248,7 +248,8 @@ Client *focus_cycle(gboolean forward, gboolean linear, gboolean done,
             if (it == NULL) it = g_list_last(list);
         }
         ft = client_focus_target(it->data);
             if (it == NULL) it = g_list_last(list);
         }
         ft = client_focus_target(it->data);
-        if (ft == it->data && focus_client != ft && client_focusable(ft)) {
+        if (ft == it->data && focus_client != ft && client_normal(ft) &&
+            client_focusable(ft)) {
             if (client_focus(ft)) {
                 noreorder++; /* avoid reordering the focus_order */
                 return ft;
             if (client_focus(ft)) {
                 noreorder++; /* avoid reordering the focus_order */
                 return ft;
This page took 0.022427 seconds and 4 git commands to generate.