emacs-diffs
[Top][All Lists]
Advanced

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

master aab2477: Prevent GDK from handling emulated button events


From: Po Lu
Subject: master aab2477: Prevent GDK from handling emulated button events
Date: Tue, 14 Dec 2021 21:35:35 -0500 (EST)

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

    Prevent GDK from handling emulated button events
    
    * src/xterm.c (handle_one_xevent): Drop emulated button events.
---
 src/xterm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/xterm.c b/src/xterm.c
index 1f377f8..646985b 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10234,7 +10234,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                  && xev->detail >= 4
                  && xev->detail <= 8
                  && xev->flags & XIPointerEmulated)
-               goto XI_OTHER;
+               {
+                 *finish = X_EVENT_DROP;
+                 goto XI_OTHER;
+               }
 #endif
 
              device = xi_device_from_id (dpyinfo, xev->deviceid);



reply via email to

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