]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus_cycle_popup.c
Hide the focus popup if we change desktops and one of the windows in it disappears
[chaz/openbox] / openbox / focus_cycle_popup.c
index 740d668817a62ce17fc8bf47e1d95458bf2cc097..d01be03cf02970a119be9ddbc4cb7ee2b6efffef 100644 (file)
@@ -535,3 +535,17 @@ void focus_cycle_popup_single_hide(void)
 {
     icon_popup_hide(single_popup);
 }
+
+gboolean focus_cycle_popup_is_showing(ObClient *client)
+{
+    if (popup.mapped) {
+        GList *it;
+
+        for (it = popup.targets; it; it = g_list_next(it)) {
+            ObFocusCyclePopupTarget *t = it->data;
+            if (t->client == client)
+                return TRUE;
+        }
+    }
+    return FALSE;
+}
This page took 0.021524 seconds and 4 git commands to generate.