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. --- openbox/actions/desktop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox') 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; -- cgit v1.2.3