From f99bac932bf883dbd4b91dc5ba21c77a23840be7 Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Mon, 6 Aug 2012 12:32:49 +0400 Subject: [PATCH] Fix replacement typo. * window.c (replace_window): Set root_window instead of selected_window. This fixes a total window subsystem malfunction reported by Bastien Guerry . --- src/ChangeLog | 7 +++++++ src/window.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 58bc7de8d08..497ba67f106 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2012-08-06 Dmitry Antipov + + Fix replacement typo. + * window.c (replace_window): Set root_window instead of + selected_window. This fixes a total window subsystem + malfunction reported by Bastien Guerry . + 2012-08-06 Glenn Morris * lisp.mk (lisp): Add language/persian.elc. 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) /* If OLD is its frame's root window, then NEW is the new root window for that frame. */ if (EQ (old, FRAME_ROOT_WINDOW (XFRAME (WVAR (o, frame))))) - FSET (XFRAME (WVAR (o, frame)), selected_window, new); + FSET (XFRAME (WVAR (o, frame)), root_window, new); if (setflag) { -- 2.39.5