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:
parent
60a8583420
commit
102406edb1
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue