From be9637e40317eb36e5a5357d3f58e3af21c81df4 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 16 Oct 2011 11:50:15 -0400 Subject: 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. --- obt/keyboard.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'obt/keyboard.h') 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); -- cgit v1.2.3