]> icculus.org git repositories - dana/openbox.git/commit
Use the KeyCode to directly find the modifier mask. (bug #5173)
authorDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 15:50:15 +0000 (11:50 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 30 Sep 2012 15:45:53 +0000 (11:45 -0400)
commit8a857f00a860a9998b668b9a96615e8804e155d2
treebe5957a20430098580e4906ef56f4a9d5864e309
parent63e1baf8f67ffa907d85ae0ef174ddd396ad0f62
Use the KeyCode to directly find the modifier mask. (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.c
obt/keyboard.h