emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7c37f5fd69: Be less strict about which PointerEmulated button eve


From: Po Lu
Subject: master 7c37f5fd69: Be less strict about which PointerEmulated button events to ignore
Date: Fri, 11 Feb 2022 21:29:13 -0500 (EST)

branch: master
commit 7c37f5fd698227f1d0f1ebb40b004bc021028cae
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Be less strict about which PointerEmulated button events to ignore
    
    * src/xterm.c (handle_one_xevent): Ignore all PointerEmulated
    button events.
---
 src/xterm.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index e7736f741a..22c1438076 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]