aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2021-11-13 21:37:06 +0800
committerPo Lu2021-11-13 21:38:06 +0800
commitf7abc04c4002a2fc7dc7c8c9ec2a264e25aaf5f5 (patch)
tree0ffaf2258d89434572adb8c62a603f0f2db52ed4 /src
parent89d7a71ce6a7338e4650409f16e419a53fff9723 (diff)
downloademacs-f7abc04c4002a2fc7dc7c8c9ec2a264e25aaf5f5.tar.gz
emacs-f7abc04c4002a2fc7dc7c8c9ec2a264e25aaf5f5.zip
Fix scroll event test in handle_one_xevent
* src/xterm.c (handle_one_xevent): Test for scroll wheel button correctly in xwidget code.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c6
1 files 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,
9304 event->xbutton.button, event->xbutton.state, 9304 event->xbutton.button, event->xbutton.state,
9305 event->xbutton.time); 9305 event->xbutton.time);
9306 9306
9307 if (!EQ (selected_window, xvw->w) 9307 if (!EQ (selected_window, xvw->w) && (event->xbutton.button < 4))
9308 && ((event->xbutton.button < 3) 9308 {
9309 || (event->xbutton.button > 7)))
9310 {
9311 inev.ie.kind = SELECT_WINDOW_EVENT; 9309 inev.ie.kind = SELECT_WINDOW_EVENT;
9312 inev.ie.frame_or_window = xvw->w; 9310 inev.ie.frame_or_window = xvw->w;
9313 } 9311 }