Use only effective modifiers for XI2 key press events

* src/xterm.c (handle_one_xevent): Use only effective modifiers
in XI_KeyPress events.
This commit is contained in:
Po Lu 2021-11-22 09:34:39 +08:00
parent bb2a989e00
commit a4ac609098

View 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;