aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/emacs.c8
1 files changed, 3 insertions, 5 deletions
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)
294{ 294{
295 struct input_event buf; 295 struct input_event buf;
296 296
297 bzero (&buf, sizeof buf);
297 buf.kind = user_signal; 298 buf.kind = user_signal;
298 buf.code = 0;
299 buf.frame_or_window = selected_frame; 299 buf.frame_or_window = selected_frame;
300 buf.modifiers = 0;
301 buf.timestamp = 0;
302 300
303 kbd_buffer_store_event (&buf); 301 kbd_buffer_store_event (&buf);
304} 302}
@@ -311,11 +309,10 @@ handle_USR2_signal (sig)
311{ 309{
312 struct input_event buf; 310 struct input_event buf;
313 311
312 bzero (&buf, sizeof buf);
314 buf.kind = user_signal; 313 buf.kind = user_signal;
315 buf.code = 1; 314 buf.code = 1;
316 buf.frame_or_window = selected_frame; 315 buf.frame_or_window = selected_frame;
317 buf.modifiers = 0;
318 buf.timestamp = 0;
319 316
320 kbd_buffer_store_event (&buf); 317 kbd_buffer_store_event (&buf);
321} 318}
@@ -1429,6 +1426,7 @@ main (argc, argv, envp)
1429#ifdef HAVE_SOUND 1426#ifdef HAVE_SOUND
1430 init_sound (); 1427 init_sound ();
1431#endif 1428#endif
1429 init_window ();
1432 1430
1433 if (!initialized) 1431 if (!initialized)
1434 { 1432 {