summaryrefslogtreecommitdiff
path: root/openbox/grab.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-02-11 14:17:59 -0500
committerDana Jansens <danakj@orodu.net>2010-02-11 14:17:59 -0500
commit08269cefbce2fe600269c989f9a6a22a98641ba1 (patch)
treec0df49c9be68ff45e786a916d96563d7f5628dbb /openbox/grab.h
parent62f8a5c49b852047bf6cc199d2d0c9add41d35a9 (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/grab.h')
-rw-r--r--openbox/grab.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/grab.h b/openbox/grab.h
index 82536373..c4fe17c2 100644
--- a/openbox/grab.h
+++ b/openbox/grab.h
@@ -20,6 +20,7 @@
#define __grab_h
#include "misc.h"
+#include "obt/keyboard.h"
#include <glib.h>
#include <X11/Xlib.h>
@@ -27,6 +28,8 @@
void grab_startup(gboolean reconfig);
void grab_shutdown(gboolean reconfig);
+ObtIC *grab_input_context(void);
+
gboolean grab_keyboard_full(gboolean grab);
/*! @param confine If true the pointer is confined to the screen */
gboolean grab_pointer_full(gboolean grab, gboolean owner_events,