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:
parent
89d7a71ce6
commit
f7abc04c40
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue