1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 05:30:45 -08:00

Fix scroll event test in handle_one_xevent

* src/xterm.c (handle_one_xevent): Test for scroll wheel button
correctly in xwidget code.
This commit is contained in:
Po Lu 2021-11-13 21:37:06 +08:00
parent 89d7a71ce6
commit f7abc04c40

View file

@ -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;
}