From 05be396488e335fbac46c9d2dfd9d20ba16ac85e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 29 Jul 2002 01:55:43 +0000 Subject: [PATCH] (make_lispy_event): Use #ifdef to test USE_TOOLKIT_SCROLL_BARS. Explicitly clear up_modifier in event->modifiers. --- src/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index 0647d532867..ce20d57913d 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -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, -- 2.39.5