]> git.eshelyaron.com Git - emacs.git/commitdiff
Be less strict about which PointerEmulated button events to ignore
authorPo Lu <luangruo@yahoo.com>
Sat, 12 Feb 2022 02:23:51 +0000 (10:23 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 12 Feb 2022 02:23:51 +0000 (10:23 +0800)
* src/xterm.c (handle_one_xevent): Ignore all PointerEmulated
button events.

src/xterm.c

index e7736f741a00c054145c28432cbbfcec76f12ff1..22c143807675d9480f70f45d5a4fd72355433c82 100644 (file)
@@ -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;