x11: Correct GroupSwitch mask
base | latched | locked is incorrect for the group mask, and the clamping has already been applied. https://bugzilla.gnome.org/show_bug.cgi?id=671070
This commit is contained in:
committed by
Matthias Clasen
parent
72a6ae1dbb
commit
deea79f4e4
@ -783,16 +783,7 @@ _gdk_x11_device_xi2_translate_state (XIModifierState *mods_state,
|
||||
}
|
||||
|
||||
if (group_state)
|
||||
{
|
||||
gint group;
|
||||
|
||||
group = group_state->base | group_state->latched | group_state->locked;
|
||||
|
||||
/* FIXME: do we need the XKB complications for this ? */
|
||||
group = CLAMP(group, 0, 3);
|
||||
|
||||
state |= group << 13;
|
||||
}
|
||||
state |= (group_state->effective) << 13;
|
||||
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user