From: Po Lu Date: Sat, 13 Nov 2021 13:37:06 +0000 (+0800) Subject: Fix scroll event test in handle_one_xevent X-Git-Tag: emacs-29.0.90~2852^2~307 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f7abc04c4002a2fc7dc7c8c9ec2a264e25aaf5f5;p=emacs.git Fix scroll event test in handle_one_xevent * src/xterm.c (handle_one_xevent): Test for scroll wheel button correctly in xwidget code. --- 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; }