summaryrefslogtreecommitdiff
path: root/openbox/focus_cycle_popup.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2009-12-18 11:39:56 -0500
committerDana Jansens <danakj@orodu.net>2009-12-18 11:39:56 -0500
commit965ed8907a5dd81d5ffbc93b67a672fa78833854 (patch)
tree9e02aed49fd664e5d5b73e417d4a2b5b73e793a3 /openbox/focus_cycle_popup.c
parentaeac6294a3c45c10d04f108a6fc767298132735c (diff)
parent01fd9f99cc5cbe4783a7b7807b51b87269250212 (diff)
Merge branch 'backport' into work
Conflicts: openbox/screen.c
Diffstat (limited to 'openbox/focus_cycle_popup.c')
-rw-r--r--openbox/focus_cycle_popup.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c
index d6d5584c..cc2b3b36 100644
--- a/openbox/focus_cycle_popup.c
+++ b/openbox/focus_cycle_popup.c
@@ -735,3 +735,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;
+}