X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenuframe.h;h=069759721e0c0b8a437156d2afe9dc69f3d10464;hb=2c6240fd2f3e50fca76bb3f4df172eb745982b79;hp=e1f4b15bfe03b4ddd3b355f883731e5b1ffcbf99;hpb=83da4ec9398d197f39461cd7305163b2676840c8;p=chaz%2Fopenbox diff --git a/openbox/menuframe.h b/openbox/menuframe.h index e1f4b15b..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; @@ -144,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