aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-05-09 04:57:39 +0000
committerKarl Heuer1995-05-09 04:57:39 +0000
commite557f19d8bf68d93864c03a479da6a0df9a4678f (patch)
tree0c15324f82d0f0e37f825a92caa93888937e55b3 /src
parent16d07a24c468c7d475dfe1d68e219f50bf2dbd92 (diff)
downloademacs-e557f19d8bf68d93864c03a479da6a0df9a4678f.tar.gz
emacs-e557f19d8bf68d93864c03a479da6a0df9a4678f.zip
(Fx_create_frame): Pass kb to make_frame_without_minibuffer.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 712dac5696b..63a58d12011 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2739,6 +2739,7 @@ This function is an internal primitive--use `make-frame' instead.")
2739 Lisp_Object display; 2739 Lisp_Object display;
2740 struct x_display_info *dpyinfo; 2740 struct x_display_info *dpyinfo;
2741 Lisp_Object parent; 2741 Lisp_Object parent;
2742 struct kboard *kb;
2742 2743
2743 check_x (); 2744 check_x ();
2744 2745
@@ -2746,6 +2747,11 @@ This function is an internal primitive--use `make-frame' instead.")
2746 if (EQ (display, Qunbound)) 2747 if (EQ (display, Qunbound))
2747 display = Qnil; 2748 display = Qnil;
2748 dpyinfo = check_x_display_info (display); 2749 dpyinfo = check_x_display_info (display);
2750#ifdef MULTI_KBOARD
2751 kb = dpyinfo->kboard;
2752#else
2753 kb = &the_only_kboard;
2754#endif
2749 2755
2750 name = x_get_arg (parms, Qname, "title", "Title", string); 2756 name = x_get_arg (parms, Qname, "title", "Title", string);
2751 if (!STRINGP (name) 2757 if (!STRINGP (name)
@@ -2762,14 +2768,14 @@ This function is an internal primitive--use `make-frame' instead.")
2762 2768
2763 tem = x_get_arg (parms, Qminibuffer, 0, 0, symbol); 2769 tem = x_get_arg (parms, Qminibuffer, 0, 0, symbol);
2764 if (EQ (tem, Qnone) || NILP (tem)) 2770 if (EQ (tem, Qnone) || NILP (tem))
2765 f = make_frame_without_minibuffer (Qnil); 2771 f = make_frame_without_minibuffer (Qnil, kb);
2766 else if (EQ (tem, Qonly)) 2772 else if (EQ (tem, Qonly))
2767 { 2773 {
2768 f = make_minibuffer_frame (); 2774 f = make_minibuffer_frame ();
2769 minibuffer_only = 1; 2775 minibuffer_only = 1;
2770 } 2776 }
2771 else if (WINDOWP (tem)) 2777 else if (WINDOWP (tem))
2772 f = make_frame_without_minibuffer (tem); 2778 f = make_frame_without_minibuffer (tem, kb);
2773 else 2779 else
2774 f = make_frame (1); 2780 f = make_frame (1);
2775 2781
@@ -2786,7 +2792,7 @@ This function is an internal primitive--use `make-frame' instead.")
2786 2792
2787 FRAME_X_DISPLAY_INFO (f) = dpyinfo; 2793 FRAME_X_DISPLAY_INFO (f) = dpyinfo;
2788#ifdef MULTI_KBOARD 2794#ifdef MULTI_KBOARD
2789 FRAME_KBOARD (f) = dpyinfo->kboard; 2795 FRAME_KBOARD (f) = kb;
2790#endif 2796#endif
2791 2797
2792 /* Specify the parent under which to make this X window. */ 2798 /* Specify the parent under which to make this X window. */