X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenuframe.h;h=7c744fee196dcfe2b9e0b11f723abe9d6606aee1;hb=f7eb47dba4b091b67a28404ce461b15dffcb4298;hp=f73914443ae9bda885a53dc97b6fe6b9b0a9e00e;hpb=c34ef4028e504b8ce862b9c2e47b284ab66717dd;p=chaz%2Fopenbox diff --git a/openbox/menuframe.h b/openbox/menuframe.h index f7391444..7c744fee 100644 --- a/openbox/menuframe.h +++ b/openbox/menuframe.h @@ -31,6 +31,12 @@ struct _ObMenuFrame ObMenuFrame *parent; ObMenuFrame *child; + GList *entries; + ObMenuEntryFrame *selected; + + /* If a titlebar is displayed for the menu or not (for top-level menus) */ + gboolean show_title; + /* On-screen area (including borders!) */ Rect area; gint inner_w; /* inside the borders */ @@ -39,9 +45,6 @@ struct _ObMenuFrame gint text_x; /* offset at which the text appears in the items */ gint text_w; /* width of the text area in the items */ - GList *entries; - ObMenuEntryFrame *selected; - Window title; Window items; @@ -82,6 +85,7 @@ void menu_frame_show(ObMenuFrame *self, ObMenuFrame *parent); void menu_frame_hide(ObMenuFrame *self); void menu_frame_hide_all(); +void menu_frame_hide_all_client(struct _ObClient *client); void menu_frame_select(ObMenuFrame *self, ObMenuEntryFrame *entry); @@ -90,6 +94,6 @@ ObMenuEntryFrame* menu_entry_frame_under(gint x, gint y); void menu_entry_frame_show_submenu(ObMenuEntryFrame *self); -void menu_entry_frame_execute(ObMenuEntryFrame *self); +void menu_entry_frame_execute(ObMenuEntryFrame *self, gboolean hide); #endif