From 280529221e9349aa07c6c498df6b80b3a8951198 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 7 May 2007 23:26:22 +0000 Subject: 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 --- openbox/menuframe.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbox/menuframe.c') 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); -- cgit v1.2.3