changeset 44525:440ce7bfcd77

(dos_rawgetc): Use a single event for HELP_EVENT.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 12 Apr 2002 05:50:53 +0000
parents 0626c87baa01
children eacabd6d7bc9
files src/msdos.c
diffstat 1 files changed, 4 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/msdos.c	Fri Apr 12 05:50:50 2002 +0000
+++ b/src/msdos.c	Fri Apr 12 05:50:53 2002 +0000
@@ -3447,18 +3447,14 @@
 	     changed, generate a HELP_EVENT.  */
 	  if (!NILP (help_echo) || !NILP (previous_help_echo))
 	    {
-	      /* HELP_EVENT takes 2 events in the event loop.  */
 	      event.kind = HELP_EVENT;
 	      event.frame_or_window = selected_frame;
 	      event.arg = help_echo_object;
-	      event.x = make_number (help_echo_pos);
+	      event.x = WINDOWP (help_echo_window)
+		? help_echo_window : selected_frame;
+	      event.y = help_echo;
 	      event.timestamp = event_timestamp ();
-	      event.code = 0;
-	      kbd_buffer_store_event (&event);
-	      if (WINDOWP (help_echo_window))
-		event.frame_or_window = help_echo_window;
-	      event.arg = help_echo;
-	      event.code = 1;
+	      event.code = make_number (help_echo_pos);
 	      kbd_buffer_store_event (&event);
 	    }
 	}