mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-08 12:40:49 -08:00
(make_lispy_event): Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
Explicitly clear up_modifier in event->modifiers.
This commit is contained in:
parent
5e24bf120e
commit
05be396488
1 changed files with 2 additions and 1 deletions
|
|
@ -5185,7 +5185,7 @@ make_lispy_event (event)
|
|||
}
|
||||
}
|
||||
|
||||
#if USE_TOOLKIT_SCROLL_BARS
|
||||
#ifdef USE_TOOLKIT_SCROLL_BARS
|
||||
|
||||
/* We don't have down and up events if using toolkit scroll bars,
|
||||
so make this always a click event. Store in the `part' of
|
||||
|
|
@ -5221,6 +5221,7 @@ make_lispy_event (event)
|
|||
|
||||
/* Always treat scroll bar events as clicks. */
|
||||
event->modifiers |= click_modifier;
|
||||
event->modifiers &= ~up_modifier;
|
||||
|
||||
/* Get the symbol we should use for the mouse click. */
|
||||
head = modify_event_symbol (event->code,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue