aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frame.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c
index a68aed314d0..27b74d5d595 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1707,8 +1707,9 @@ store_frame_param (f, prop, val)
1707 if (! MINI_WINDOW_P (XWINDOW (val))) 1707 if (! MINI_WINDOW_P (XWINDOW (val)))
1708 error ("Surrogate minibuffer windows must be minibuffer windows."); 1708 error ("Surrogate minibuffer windows must be minibuffer windows.");
1709 1709
1710 if (FRAME_HAS_MINIBUF_P (f) || FRAME_MINIBUF_ONLY_P (f)) 1710 if (FRAME_HAS_MINIBUF_P (f) || FRAME_MINIBUF_ONLY_P (f)
1711 error ("can't change the surrogate minibuffer of a frame with its own minibuffer"); 1711 && !EQ (val, f->minibuffer_window))
1712 error ("Can't change the surrogate minibuffer of a frame with its own minibuffer");
1712 1713
1713 /* Install the chosen minibuffer window, with proper buffer. */ 1714 /* Install the chosen minibuffer window, with proper buffer. */
1714 f->minibuffer_window = val; 1715 f->minibuffer_window = val;