changeset 46718:175cd09f34d2

(make_lispy_event): Use #ifdef to test USE_TOOLKIT_SCROLL_BARS. Explicitly clear up_modifier in event->modifiers.
author Richard M. Stallman <rms@gnu.org>
date Mon, 29 Jul 2002 01:55:43 +0000
parents 505956923015
children 9fee2ba2f93d
files src/keyboard.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Mon Jul 29 01:53:42 2002 +0000
+++ b/src/keyboard.c	Mon Jul 29 01:55:43 2002 +0000
@@ -5185,7 +5185,7 @@
 	}
       }
 
-#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 @@
 
 	/* 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,