diff options
| author | Eli Zaretskii | 2014-07-27 16:01:07 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-07-27 16:01:07 +0300 |
| commit | bc7f1625f6a06f153feb4253684a41ae2d96fb36 (patch) | |
| tree | 7d98ade1c2be5c4835a6c7f8423e5901fa272a0e | |
| parent | 5c2b88050db7f9f05a71938795088f4d5b250f28 (diff) | |
| download | emacs-bc7f1625f6a06f153feb4253684a41ae2d96fb36.tar.gz emacs-bc7f1625f6a06f153feb4253684a41ae2d96fb36.zip | |
Fix bugs #16674 and #18112 with resizing TTY frames after switching terminals.
lisp/window.el (window--pixel-to-total): Use FRAME's root window, not
that of the selected frame.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/window.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5307a6a496f..fe7dec98983 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-07-27 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * window.el (window--pixel-to-total): Use FRAME's root window, not | ||
| 4 | that of the selected frame. (Bug#18112, Bug#16674) | ||
| 5 | |||
| 1 | 2014-07-27 Andreas Schwab <schwab@linux-m68k.org> | 6 | 2014-07-27 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 7 | ||
| 3 | * textmodes/tex-mode.el (tex-font-lock-verb): Doc fix. | 8 | * textmodes/tex-mode.el (tex-font-lock-verb): Doc fix. |
diff --git a/lisp/window.el b/lisp/window.el index 28dd6a8ab26..c771f01707e 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -2230,7 +2230,7 @@ Optional argument HORIZONTAL non-nil means assign new total | |||
| 2230 | window widths from pixel widths." | 2230 | window widths from pixel widths." |
| 2231 | (setq frame (window-normalize-frame frame)) | 2231 | (setq frame (window-normalize-frame frame)) |
| 2232 | (let* ((char-size (frame-char-size frame horizontal)) | 2232 | (let* ((char-size (frame-char-size frame horizontal)) |
| 2233 | (root (frame-root-window)) | 2233 | (root (frame-root-window frame)) |
| 2234 | (root-size (window-size root horizontal t)) | 2234 | (root-size (window-size root horizontal t)) |
| 2235 | ;; We have to care about the minibuffer window only if it | 2235 | ;; We have to care about the minibuffer window only if it |
| 2236 | ;; appears together with the root window on this frame. | 2236 | ;; appears together with the root window on this frame. |