[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame s
From: |
Alan Third |
Subject: |
bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame size on macOS |
Date: |
Wed, 22 Nov 2017 17:07:12 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (darwin) |
Aaron Jensen <aaronjensen@gmail.com> writes:
> After d31cd79b40dbd5459b16505a4ee4340210499277 is applied,
> desktop-save-mode will no longer restore frames on macOS to the proper
> size. They end up being slightly smaller in both height and width,
> meaning that repeated restarts will result in a shrinking frame.
>
> I don't know where the equivalent is in desktop.el, but when
> implementing my own version of restoring the frame position it was
> (before d31cd79b) necessary to slightly adjust frame height and width
> from the reported width when saving. I was able to remove this hack
> after d31cd79b:
> https://github.com/aaronjensen/restore-frame-position/commit/b89f85e145dd94922a74de60f2e8993c80874796
>
> Also note that even without d31cd79b, desktop-save-mode restores a
> height that is roughly 4px shy of the frames's actual height, but that
> may have something to do with a setting I have somewhere that allows my
> emacs frame height to not be snapped to text height--I don't remember
> what that setting is, however.
Hi Aaron, I think you want to use frame-text-width and frame-text-height
rather than frame-geometry-*.
frame-geometry-width returns the outer width of the frame, but the
functions for *setting* the width and height use the inner frame size,
which I think equates to the text area size.
--
Alan Third
- bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame size on macOS,
Alan Third <=
- bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame size on macOS, Aaron Jensen, 2017/11/22
- bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame size on macOS, martin rudalics, 2017/11/23
- bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame size on macOS, Alan Third, 2017/11/23
- bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame size on macOS, Aaron Jensen, 2017/11/23
- bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame size on macOS, martin rudalics, 2017/11/24
- bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame size on macOS, Aaron Jensen, 2017/11/24
- bug#28442: 26.0.50; desktop-save-mode no longer restores correct frame size on macOS, martin rudalics, 2017/11/26
- bug#28442: 26.0.50; [PATCH] Save and restore frame pixel size with desktop-save-mode, Aaron Jensen, 2017/11/26
- bug#28442: 26.0.50; [PATCH] Save and restore frame pixel size with desktop-save-mode, Aaron Jensen, 2017/11/26