From: Po Lu Date: Sat, 12 Feb 2022 02:23:51 +0000 (+0800) Subject: Be less strict about which PointerEmulated button events to ignore X-Git-Tag: emacs-29.0.90~2369 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7c37f5fd698227f1d0f1ebb40b004bc021028cae;p=emacs.git Be less strict about which PointerEmulated button events to ignore * src/xterm.c (handle_one_xevent): Ignore all PointerEmulated button events. --- diff --git a/src/xterm.c b/src/xterm.c index e7736f741a0..22c14380767 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -11242,11 +11242,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, #ifdef XIPointerEmulated /* Ignore emulated scroll events when XI2 native scroll events are present. */ - if (((dpyinfo->xi2_version == 1 - && xev->detail >= 4 - && xev->detail <= 8) - || (dpyinfo->xi2_version >= 2)) - && xev->flags & XIPointerEmulated) + if (xev->flags & XIPointerEmulated) { *finish = X_EVENT_DROP; goto XI_OTHER;