From bbbb47704f6c7e56a96983976fbb0ab1acca652f Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 8 Mar 2022 18:31:12 +0800 Subject: [PATCH] Fix detection of modifier keys on XInput 2 * src/xterm.c (handle_one_xevent): Fix iteration over sets of modifiers. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.2