]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus.c
stacking has been made more reliable with groups and group transients.
[chaz/openbox] / openbox / focus.c
index 2d6804bc2576654edfcb5a976119e3eb0ca265b9..73cb6f52c9b096d53cc5150c85d179c85e911184 100644 (file)
@@ -260,11 +260,15 @@ ObClient* focus_fallback_target(ObFocusFallbackType type)
             if (!config_focus_follow || config_focus_last)
                 trans = TRUE;
             else {
-                if ((target = client_under_pointer()) &&
-                    client_search_transient
-                    (client_search_top_transient(target), old))
-                {
-                    trans = TRUE;
+                if ((target = client_under_pointer())) {
+                    GSList *sit;
+
+                    sit = client_search_top_transients(target);
+                    for (; sit; sit = g_slist_next(sit))
+                        if (client_search_transient(sit->data, old)) {
+                            trans = TRUE;
+                            break;
+                        }
                 }
             }
 
This page took 0.021892 seconds and 4 git commands to generate.