From f7abc04c4002a2fc7dc7c8c9ec2a264e25aaf5f5 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 13 Nov 2021 21:37:06 +0800 Subject: [PATCH] Fix scroll event test in handle_one_xevent * src/xterm.c (handle_one_xevent): Test for scroll wheel button correctly in xwidget code. --- src/xterm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index 4492db85029..fd498c0e32b 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -9304,10 +9304,8 @@ handle_one_xevent (struct x_display_info *dpyinfo, event->xbutton.button, event->xbutton.state, event->xbutton.time); - if (!EQ (selected_window, xvw->w) - && ((event->xbutton.button < 3) - || (event->xbutton.button > 7))) - { + if (!EQ (selected_window, xvw->w) && (event->xbutton.button < 4)) + { inev.ie.kind = SELECT_WINDOW_EVENT; inev.ie.frame_or_window = xvw->w; } -- 2.39.2