changeset 30036:22cde023296d

(handle_USR1_signal, handle_USR2_signal) Clear input_event with bzero. (main): Call init_window.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 04 Jul 2000 18:57:38 +0000
parents cfe75bd98a52
children 79b4fa5288c3
files src/emacs.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Tue Jul 04 14:56:20 2000 +0000
+++ b/src/emacs.c	Tue Jul 04 18:57:38 2000 +0000
@@ -294,11 +294,9 @@
 {
   struct input_event buf;
 
+  bzero (&buf, sizeof buf);
   buf.kind = user_signal;
-  buf.code = 0;
   buf.frame_or_window = selected_frame;
-  buf.modifiers = 0;
-  buf.timestamp = 0;
 
   kbd_buffer_store_event (&buf);
 }
@@ -311,11 +309,10 @@
 {
   struct input_event buf;
 
+  bzero (&buf, sizeof buf);
   buf.kind = user_signal;
   buf.code = 1;
   buf.frame_or_window = selected_frame;
-  buf.modifiers = 0;
-  buf.timestamp = 0;
 
   kbd_buffer_store_event (&buf);
 }
@@ -1429,6 +1426,7 @@
 #ifdef HAVE_SOUND
   init_sound ();
 #endif
+  init_window ();
 
   if (!initialized)
     {