diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-02-11 14:17:59 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-02-11 14:17:59 -0500 |
| commit | 08269cefbce2fe600269c989f9a6a22a98641ba1 (patch) | |
| tree | c0df49c9be68ff45e786a916d96563d7f5628dbb /openbox/menuframe.c | |
| parent | 62f8a5c49b852047bf6cc199d2d0c9add41d35a9 (diff) | |
make menu input work with the new obt keyboard stuff.
create an Input Context for use during keyboard grabs, and use this to
translate KeyPress events properly.
make the menu respond to KeyPress events, since these are the only ones that
can be translated properly, but still execute things from KeyRelease events
Diffstat (limited to 'openbox/menuframe.c')
| -rw-r--r-- | openbox/menuframe.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c index b80bac91..ac033f4b 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -155,6 +155,13 @@ void menu_frame_free(ObMenuFrame *self) } } +ObtIC* menu_frame_ic(ObMenuFrame *self) +{ + /* menus are always used through a grab right now, so they can always use + the grab input context */ + return grab_input_context(); +} + static ObMenuEntryFrame* menu_entry_frame_new(ObMenuEntry *entry, ObMenuFrame *frame) { |
