1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

Don't emit SELECT_WINDOW_EVENT when an xwidget is scrolled

* src/xterm.c (handle_one_event): Don't select xwidget window
on button event if the button pressed actually represents the
scroll wheel.
This commit is contained in:
Po Lu 2021-11-13 20:03:05 +08:00
parent 60a8583420
commit 102406edb1

View file

@ -9304,7 +9304,9 @@ handle_one_xevent (struct x_display_info *dpyinfo,
event->xbutton.button, event->xbutton.state,
event->xbutton.time);
if (!EQ (selected_window, xvw->w))
if (!EQ (selected_window, xvw->w)
&& ((event->xbutton.button < 3)
|| (event->xbutton.button > 7)))
{
inev.ie.kind = SELECT_WINDOW_EVENT;
inev.ie.frame_or_window = xvw->w;