aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 96606a8aa6d..655515182ce 100644
--- a/src/window.c
+++ b/src/window.c
@@ -978,8 +978,9 @@ windows, eventually ending up back at the window you started with.\n\
978#endif 978#endif
979 /* If this frame has a minibuffer, find that window first, 979 /* If this frame has a minibuffer, find that window first,
980 because it is conceptually the last window in that frame. */ 980 because it is conceptually the last window in that frame. */
981 tem = FRAME_MINIBUF_WINDOW (XFRAME (tem)); 981 if (FRAME_HAS_MINIBUF_P (XFRAME (tem)))
982 if (NILP (tem)) 982 tem = FRAME_MINIBUF_WINDOW (XFRAME (tem));
983 else
983 tem = FRAME_ROOT_WINDOW (XFRAME (tem)); 984 tem = FRAME_ROOT_WINDOW (XFRAME (tem));
984 985
985 break; 986 break;