From: Po Lu Date: Tue, 8 Mar 2022 10:31:12 +0000 (+0800) Subject: Fix detection of modifier keys on XInput 2 X-Git-Tag: emacs-29.0.90~1957 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bbbb47704f6c7e56a96983976fbb0ab1acca652f;p=emacs.git Fix detection of modifier keys on XInput 2 * src/xterm.c (handle_one_xevent): Fix iteration over sets of modifiers. --- diff --git a/src/xterm.c b/src/xterm.c index fdecca3bcdb..72c7c05d893 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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; } }