diff options
| author | Dana Jansens <danakj@orodu.net> | 2011-10-16 11:50:15 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2012-09-30 14:48:04 -0400 |
| commit | be9637e40317eb36e5a5357d3f58e3af21c81df4 (patch) | |
| tree | 5f7c1b4227522f36d25653e302c6f9ad3d45feab /openbox | |
| parent | ad5b92588fbe36100cdc4ae7064883cd16e13a1e (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 'openbox')
| -rw-r--r-- | openbox/actions/desktop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/actions/desktop.c b/openbox/actions/desktop.c index 70d807db..8dadf550 100644 --- a/openbox/actions/desktop.c +++ b/openbox/actions/desktop.c @@ -352,7 +352,7 @@ static gboolean i_input_func(guint initial_state, static gboolean i_pre_func(guint initial_state, gpointer options) { guint initial_mods = obt_keyboard_only_modmasks(initial_state); - if (!inital_mods) { + if (!initial_mods) { Options *o = options; o->interactive = FALSE; return FALSE; |
