aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index fcd9c666553..1c62e6f00a7 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1841,7 +1841,7 @@ replace_window (Lisp_Object old, Lisp_Object new, int setflag)
1841 /* If OLD is its frame's root window, then NEW is the new 1841 /* If OLD is its frame's root window, then NEW is the new
1842 root window for that frame. */ 1842 root window for that frame. */
1843 if (EQ (old, FRAME_ROOT_WINDOW (XFRAME (WVAR (o, frame))))) 1843 if (EQ (old, FRAME_ROOT_WINDOW (XFRAME (WVAR (o, frame)))))
1844 FSET (XFRAME (WVAR (o, frame)), selected_window, new); 1844 FSET (XFRAME (WVAR (o, frame)), root_window, new);
1845 1845
1846 if (setflag) 1846 if (setflag)
1847 { 1847 {