aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 }