changeset 11544:cc965273a769

(x_term_init): If the previous kboard was the dummy one, switch to the new one immediately.
author Karl Heuer <kwzh@gnu.org>
date Mon, 24 Apr 1995 22:34:27 +0000
parents 317e5825008b
children a91fcb58e8d2
files src/xterm.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Mon Apr 24 22:13:00 1995 +0000
+++ b/src/xterm.c	Mon Apr 24 22:34:27 1995 +0000
@@ -5626,6 +5626,11 @@
 	init_kboard (dpyinfo->kboard);
 	dpyinfo->kboard->next_kboard = all_kboards;
 	all_kboards = dpyinfo->kboard;
+	/* Don't let the initial kboard remain current longer than necessary.
+	   That would cause problems if a file loaded on startup tries to
+	   prompt in the minibuffer.  */
+	if (current_kboard == initial_kboard)
+	  current_kboard = dpyinfo->kboard;
       }
     dpyinfo->kboard->reference_count++;
   }