]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_term_init): If the previous kboard was the dummy one,
authorKarl Heuer <kwzh@gnu.org>
Mon, 24 Apr 1995 22:34:27 +0000 (22:34 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 24 Apr 1995 22:34:27 +0000 (22:34 +0000)
switch to the new one immediately.

src/xterm.c

index cf05dcc0b6c15a88f56b1283445955241f4bfebe..bfead8cc96a9a2114a11be240ccfa2b022d0672e 100644 (file)
@@ -5626,6 +5626,11 @@ x_term_init (display_name, xrm_option, resource_name)
        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++;
   }