Fix replacement typo.
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 6 Aug 2012 08:32:49 +0000 (12:32 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 6 Aug 2012 08:32:49 +0000 (12:32 +0400)
* window.c (replace_window): Set root_window instead of
selected_window.  This fixes a total window subsystem
malfunction reported by Bastien Guerry <bzg@gnu.org>.

src/ChangeLog
src/window.c

index 58bc7de..497ba67 100644 (file)
@@ -1,3 +1,10 @@
+2012-08-06  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       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 <bzg@gnu.org>.
+
 2012-08-06  Glenn Morris  <rgm@gnu.org>
 
        * lisp.mk (lisp): Add language/persian.elc.
index fcd9c66..1c62e6f 100644 (file)
@@ -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)
     {