summaryrefslogtreecommitdiff
path: root/obt/keyboard.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2011-10-16 11:50:15 -0400
committerDana Jansens <danakj@orodu.net>2012-09-30 14:48:04 -0400
commitbe9637e40317eb36e5a5357d3f58e3af21c81df4 (patch)
tree5f7c1b4227522f36d25653e302c6f9ad3d45feab /obt/keyboard.h
parentad5b92588fbe36100cdc4ae7064883cd16e13a1e (diff)
Use the KeyCode to directly find the modifier mask. (Fix bug 5173)
We were finding the KeySym first, and then converting back to a modifier mask. But KeySym on a key's release can differ from on its press, and we don't need them to determine the modmask from the keycode. [setxkbmap -option "grp:shifts_toggle"] turns Shift_L into XK_ISO_Prev_Group on key release, and Shift_R into XK_ISO_Next_Group.
Diffstat (limited to 'obt/keyboard.h')
-rw-r--r--obt/keyboard.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/obt/keyboard.h b/obt/keyboard.h
index 868cccf4..8f2badf8 100644
--- a/obt/keyboard.h
+++ b/obt/keyboard.h
@@ -59,9 +59,6 @@ guint obt_keyboard_only_modmasks(guint mask);
right keys when there are both. */
guint obt_keyboard_modkey_to_modmask(ObtModkeysKey key);
-/*! Get the modifier key which was pressed or released in a keyboard event */
-ObtModkeysKey obt_keyboard_keyevent_to_modkey(XEvent *e);
-
/*! Convert a KeySym to all the KeyCodes which generate it. */
KeyCode* obt_keyboard_keysym_to_keycode(KeySym sym);