]> git.eshelyaron.com Git - emacs.git/commitdiff
Use only effective modifiers for XI2 key press events
authorPo Lu <luangruo@yahoo.com>
Mon, 22 Nov 2021 01:34:39 +0000 (09:34 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 22 Nov 2021 01:34:39 +0000 (09:34 +0800)
* src/xterm.c (handle_one_xevent): Use only effective modifiers
in XI_KeyPress events.

src/xterm.c

index f5459afd4ffbead5c316f1ffda9374325fb994f6..7c2276f2e6c9571a3ee9a5df300740ac5f2b6126 100644 (file)
@@ -10292,10 +10292,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
            }
          case XI_KeyPress:
            {
-             int state = xev->mods.base
-               | xev->mods.effective
-               | xev->mods.latched
-               | xev->mods.locked;
+             int state = xev->mods.effective;
              Lisp_Object c;
 #ifdef HAVE_XKB
              unsigned int mods_rtrn;