From: Gerd Moellmann Date: Tue, 4 Jul 2000 18:57:38 +0000 (+0000) Subject: (handle_USR1_signal, handle_USR2_signal) Clear X-Git-Tag: emacs-pretest-21.0.90~2988 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=75816372d2c8a375c0986d692e03739b4d3db4fe;p=emacs.git (handle_USR1_signal, handle_USR2_signal) Clear input_event with bzero. (main): Call init_window. --- diff --git a/src/emacs.c b/src/emacs.c index e2f3b81df7e..4ea48459165 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -294,11 +294,9 @@ handle_USR1_signal (sig) { 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 @@ handle_USR2_signal (sig) { 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 @@ main (argc, argv, envp) #ifdef HAVE_SOUND init_sound (); #endif + init_window (); if (!initialized) {