lisp/window.el (window--pixel-to-total): Use FRAME's root window, not
that of the selected frame.
+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.
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.