]> Dogcows Code - chaz/openbox/blobdiff - openbox/menuframe.c
add a notifier for clients changing desktops. use it to update the send-to menu if...
[chaz/openbox] / openbox / menuframe.c
index 476f33733bce6130f0161161276ceda1470e68a1..768176abcb218cae14fa026f4cce42675b3e197f 100644 (file)
@@ -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);
 
This page took 0.024532 seconds and 4 git commands to generate.