diff options
| author | Gerd Moellmann | 2000-07-04 18:57:38 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-07-04 18:57:38 +0000 |
| commit | 75816372d2c8a375c0986d692e03739b4d3db4fe (patch) | |
| tree | cc0b88f4d2a5d503c11237cf3b231214c33efdf3 /src | |
| parent | 7ccbba4cceff8d4163a081451667959dee3bcbd6 (diff) | |
| download | emacs-75816372d2c8a375c0986d692e03739b4d3db4fe.tar.gz emacs-75816372d2c8a375c0986d692e03739b4d3db4fe.zip | |
(handle_USR1_signal, handle_USR2_signal) Clear
input_event with bzero.
(main): Call init_window.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 8 |
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 | { |