diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-07 23:26:22 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-07 23:26:22 +0000 |
| commit | 280529221e9349aa07c6c498df6b80b3a8951198 (patch) | |
| tree | f80ab701abbe3519b2613d735569e3dd23f93dee /openbox/menuframe.c | |
| parent | 31d7680274cdf2fa3c45b8c8d56db2b5d8fbc111 (diff) | |
add a notifier for clients changing desktops. use it to update the send-to menu if it changes. it does this by closing/opening the menu.. thats about the best we can do tho with this menu code without huge changes
Diffstat (limited to 'openbox/menuframe.c')
| -rw-r--r-- | openbox/menuframe.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 476f3373..768176ab 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -924,6 +924,9 @@ static gboolean menu_frame_show(ObMenuFrame *self) menu_frame_visible = g_list_prepend(menu_frame_visible, self); + if (self->menu->show_func) + self->menu->show_func(self, self->menu->data); + return TRUE; } @@ -1006,6 +1009,9 @@ void menu_frame_hide(ObMenuFrame *self) if (!it) return; + if (self->menu->hide_func) + self->menu->hide_func(self, self->menu->data); + if (self->child) menu_frame_hide(self->child); |
