diff options
| author | Karl Heuer | 1995-04-24 22:34:27 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-04-24 22:34:27 +0000 |
| commit | 0ad5446c5565e6c60ae5f51b54ef726b456e3472 (patch) | |
| tree | 1a17c35fb548016b9155dc2945eb655e886796de /src | |
| parent | 7c97ffdc851b20d1f626443c80a37b4732978b7a (diff) | |
| download | emacs-0ad5446c5565e6c60ae5f51b54ef726b456e3472.tar.gz emacs-0ad5446c5565e6c60ae5f51b54ef726b456e3472.zip | |
(x_term_init): If the previous kboard was the dummy one,
switch to the new one immediately.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index cf05dcc0b6c..bfead8cc96a 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -5626,6 +5626,11 @@ x_term_init (display_name, xrm_option, resource_name) | |||
| 5626 | init_kboard (dpyinfo->kboard); | 5626 | init_kboard (dpyinfo->kboard); |
| 5627 | dpyinfo->kboard->next_kboard = all_kboards; | 5627 | dpyinfo->kboard->next_kboard = all_kboards; |
| 5628 | all_kboards = dpyinfo->kboard; | 5628 | all_kboards = dpyinfo->kboard; |
| 5629 | /* Don't let the initial kboard remain current longer than necessary. | ||
| 5630 | That would cause problems if a file loaded on startup tries to | ||
| 5631 | prompt in the minibuffer. */ | ||
| 5632 | if (current_kboard == initial_kboard) | ||
| 5633 | current_kboard = dpyinfo->kboard; | ||
| 5629 | } | 5634 | } |
| 5630 | dpyinfo->kboard->reference_count++; | 5635 | dpyinfo->kboard->reference_count++; |
| 5631 | } | 5636 | } |