emacs-diffs
[Top][All Lists]
Advanced

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

master 003dc93f93: Fix scroll event translation for legacy button events


From: Po Lu
Subject: master 003dc93f93: Fix scroll event translation for legacy button events
Date: Sat, 14 May 2022 21:06:11 -0400 (EDT)

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

    Fix scroll event translation for legacy button events
    
    * src/xterm.c (handle_one_xevent): Don't treat emulated Button8
    as a wheel event.
---
 src/xterm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index c0d2ee40b0..dbe07a8551 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -16981,7 +16981,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
            f = x_any_window_to_frame (dpyinfo, event->xbutton.window);
 
            if (event->xbutton.button > 3
-               && event->xbutton.button < 9
+               && event->xbutton.button < 8
                && f)
              {
                if (ignore_next_mouse_click_timeout
@@ -18402,7 +18402,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
 
                  f = x_any_window_to_frame (dpyinfo, xev->event);
 
-                 if (xev->detail > 3 && xev->detail < 9 && f)
+                 if (xev->detail > 3 && xev->detail < 8 && f)
                    {
                      if (xev->evtype == XI_ButtonRelease)
                        {
@@ -18445,7 +18445,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
 
              if (f)
                {
-                 if (xev->detail >= 4 && xev->detail <= 8)
+                 if (xev->detail >= 4 && xev->detail < 8)
                    {
                      if (xev->evtype == XI_ButtonRelease)
                        {



reply via email to

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