From a067628051f5ee91f6e759ff85c8e31a7123d571 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 17 Dec 2009 15:43:46 -0500 Subject: Hide the focus popup if we change desktops and one of the windows in it disappears --- openbox/focus_cycle_popup.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'openbox/focus_cycle_popup.c') diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c index 740d6688..d01be03c 100644 --- a/openbox/focus_cycle_popup.c +++ b/openbox/focus_cycle_popup.c @@ -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; +} -- cgit v1.2.3