]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bugs #16674 and #18112 with resizing TTY frames after switching terminals.
authorEli Zaretskii <eliz@gnu.org>
Sun, 27 Jul 2014 13:01:07 +0000 (16:01 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 27 Jul 2014 13:01:07 +0000 (16:01 +0300)
 lisp/window.el (window--pixel-to-total): Use FRAME's root window, not
 that of the selected frame.

lisp/ChangeLog
lisp/window.el

index 5307a6a496f875aa9bb2086a2ba8ecda5c536caa..fe7dec98983b7ab006f155e30da966fd4ccb05fb 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-27  Eli Zaretskii  <eliz@gnu.org>
+
+       * window.el (window--pixel-to-total): Use FRAME's root window, not
+       that of the selected frame.  (Bug#18112, Bug#16674)
+
 2014-07-27  Andreas Schwab  <schwab@linux-m68k.org>
 
        * textmodes/tex-mode.el (tex-font-lock-verb): Doc fix.
index 28dd6a8ab2660114925a87a1aab7c01036b2eb12..c771f01707ea17a5791e8037160eca984a7973e8 100644 (file)
@@ -2230,7 +2230,7 @@ Optional argument HORIZONTAL non-nil means assign new total
 window widths from pixel widths."
   (setq frame (window-normalize-frame frame))
   (let* ((char-size (frame-char-size frame horizontal))
-        (root (frame-root-window))
+        (root (frame-root-window frame))
         (root-size (window-size root horizontal t))
         ;; We have to care about the minibuffer window only if it
         ;; appears together with the root window on this frame.