]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix detection of modifier keys on XInput 2
authorPo Lu <luangruo@yahoo.com>
Tue, 8 Mar 2022 10:31:12 +0000 (18:31 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 8 Mar 2022 10:33:23 +0000 (18:33 +0800)
* src/xterm.c (handle_one_xevent): Fix iteration over sets of
modifiers.

src/xterm.c

index fdecca3bcdbf18a6962cbe10c52344a014f89be2..72c7c05d893d8bcb8e6cdaf2ad977b05287d62e5 100644 (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;
                        }
                    }