1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 10:11:05 -08:00

Fix detection of modifier keys on XInput 2

* src/xterm.c (handle_one_xevent): Fix iteration over sets of
modifiers.
This commit is contained in:
Po Lu 2022-03-08 18:31:12 +08:00
parent d0d7765f23
commit bbbb47704f

View file

@ -12740,7 +12740,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
{
for (i = 0; i < 8 * dpyinfo->modmap->max_keypermod; i++)
{
if (xkey.keycode == dpyinfo->modmap->modifiermap[xev->detail])
if (xev->detail == dpyinfo->modmap->modifiermap[i])
goto xi_done_keysym;
}
}