diff options
| author | Dana Jansens <danakj@orodu.net> | 2009-12-17 15:43:46 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2009-12-17 16:51:01 -0500 |
| commit | a067628051f5ee91f6e759ff85c8e31a7123d571 (patch) | |
| tree | 47abf901024bd8f80b207020cbe3567163a24129 /openbox/focus_cycle_popup.c | |
| parent | 24f6b59fe36e06d06bd1139a99e08cb6e06d6682 (diff) | |
Hide the focus popup if we change desktops and one of the windows in it disappears
Diffstat (limited to 'openbox/focus_cycle_popup.c')
| -rw-r--r-- | openbox/focus_cycle_popup.c | 14 |
1 files changed, 14 insertions, 0 deletions
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; +} |
