summaryrefslogtreecommitdiff
path: root/obt/keyboard.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-02-11 15:05:16 -0500
committerDana Jansens <danakj@orodu.net>2010-02-11 15:07:08 -0500
commit096dad0c6c027100494ede811b33cb8558d32e25 (patch)
tree0e7799172d90d81a03632b186bf80cbeb26496e6 /obt/keyboard.h
parent6c760c5a63a2e49bc2a5a4f39f8b4b9ed285bd7e (diff)
make control keys work in menus/dialogs/etc with the new obt code, using XLookup stuff
Diffstat (limited to 'obt/keyboard.h')
-rw-r--r--obt/keyboard.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/obt/keyboard.h b/obt/keyboard.h
index 902f95b8..143921ff 100644
--- a/obt/keyboard.h
+++ b/obt/keyboard.h
@@ -21,6 +21,7 @@
#include <glib.h>
#include <X11/Xlib.h>
+#include <X11/keysym.h>
G_BEGIN_DECLS
@@ -60,7 +61,11 @@ guint obt_keyboard_modkey_to_modmask(ObtModkeysKey key);
KeyCode* obt_keyboard_keysym_to_keycode(KeySym sym);
/*! Translate a KeyPress event to the unicode character it represents */
-gunichar obt_keyboard_keypress_to_unichar(ObtIC *ic, XKeyPressedEvent *ev);
+gunichar obt_keyboard_keypress_to_unichar(ObtIC *ic, XEvent *ev);
+
+/*! Translate a KeyPress event to the KeySym that it represents. Use this
+ for control keys, not for getting text input! */
+KeySym obt_keyboard_keypress_to_keysym(XEvent *ev);
/*! Create an input context for a window.
@client The top-level client window for the input context.