X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenuframe.c;h=fcdb47f5fcac17310a0ca6251ae65362c696c026;hb=420e6f87a6503b713e4d9047f809538ec0c60d41;hp=09fce0511a7ec6941952b067ecaec64b6351af99;hpb=b8ba1cff1fdd5447984e83708865f8ba6c7f223a;p=chaz%2Fopenbox diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 09fce051..fcdb47f5 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -584,20 +584,20 @@ static void menu_frame_update(ObMenuFrame *self) menu_frame_render(self); } -void menu_frame_show(ObMenuFrame *self, ObMenuFrame *parent) +gboolean menu_frame_show(ObMenuFrame *self, ObMenuFrame *parent) { GList *it; if (g_list_find(menu_frame_visible, self)) - return; + return TRUE; if (menu_frame_visible == NULL) { /* no menus shown yet */ if (!grab_pointer(TRUE, OB_CURSOR_NONE)) - return; + return FALSE; if (!grab_keyboard(TRUE)) { grab_pointer(FALSE, OB_CURSOR_NONE); - return; + return FALSE; } } @@ -626,6 +626,8 @@ void menu_frame_show(ObMenuFrame *self, ObMenuFrame *parent) menu_frame_move_on_screen(self); XMapWindow(ob_display, self->window); + + return TRUE; } void menu_frame_hide(ObMenuFrame *self)