diff options
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index cd50ed04055..018cf7a11da 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6614,16 +6614,10 @@ init_keyboard () | |||
| 6614 | Vlast_event_frame = internal_last_event_frame; | 6614 | Vlast_event_frame = internal_last_event_frame; |
| 6615 | #endif | 6615 | #endif |
| 6616 | 6616 | ||
| 6617 | if (!initialized) | ||
| 6618 | { | ||
| 6619 | #ifdef MULTI_KBOARD | 6617 | #ifdef MULTI_KBOARD |
| 6620 | current_kboard = (KBOARD *)xmalloc (sizeof (KBOARD)); | 6618 | current_kboard = initial_kboard; |
| 6621 | all_kboards = current_kboard; | ||
| 6622 | #endif | 6619 | #endif |
| 6623 | current_kboard->next_kboard = 0; | 6620 | wipe_kboard (current_kboard); |
| 6624 | } | ||
| 6625 | if (initialized) | ||
| 6626 | wipe_kboard (current_kboard); | ||
| 6627 | init_kboard (current_kboard); | 6621 | init_kboard (current_kboard); |
| 6628 | 6622 | ||
| 6629 | if (initialized) | 6623 | if (initialized) |