X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenuframe.h;h=069759721e0c0b8a437156d2afe9dc69f3d10464;hb=5960d27b1c35c58d3c1731c71c44b9c61328a34d;hp=4f896ec88fbf965cf057ab35400f5479c9473a50;hpb=48d7045208e935da4cf8ac500f761fbfb934af77;p=chaz%2Fopenbox diff --git a/openbox/menuframe.h b/openbox/menuframe.h index 4f896ec8..06975972 100644 --- a/openbox/menuframe.h +++ b/openbox/menuframe.h @@ -73,13 +73,15 @@ struct _ObMenuFrame RrAppearance *a_title; RrAppearance *a_items; + + gboolean got_press; /* don't allow a KeyRelease event to run things in the + menu until it has seen a KeyPress. this is to + avoid having the keybinding used to show the menu + end up running something inside the menu */ }; struct _ObMenuEntryFrame { - /* if this is true then it doesn't have an entry to point to */ - gboolean more; - struct _ObMenuEntry *entry; ObMenuFrame *frame; @@ -128,7 +130,6 @@ gboolean menu_frame_show_topmenu(ObMenuFrame *self, gint x, gint y, gint button); gboolean menu_frame_show_submenu(ObMenuFrame *self, ObMenuFrame *parent, ObMenuEntryFrame *parent_entry); -void menu_frame_hide(ObMenuFrame *self); void menu_frame_hide_all(); void menu_frame_hide_all_client(struct _ObClient *client); @@ -145,6 +146,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, guint state, Time time); +void menu_entry_frame_execute(ObMenuEntryFrame *self, guint state); #endif