--- Begin Message ---
Subject: |
Using menu-bar-mode and tool-bar-mode changes frame size |
Date: |
Mon, 12 Sep 2022 21:45:56 +0000 |
I have noticed that calling repeatedly "frame-fullscreen" followed by
"frame-normal" changes
the size of the frame. The problem happens when calling "menu-bar-mode" and
"tool-bar-mode".
Having only (toggle-frame-fullscreen) keep the frame size intact.
--------
(defun frame-fullscreen ()
(interactive)
(toggle-frame-fullscreen) (menu-bar-mode -1) (tool-bar-mode -1))
--------
(defun frame-normal ()
(interactive)
(menu-bar-mode 1) (tool-bar-mode 1) (toggle-frame-fullscreen))
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size |
Date: |
Tue, 13 Sep 2022 12:56:45 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
uzibalqa <uzibalqa@proton.me> writes:
> It makes more sense to change the size of the window instead of the frame.
If you want that, turn on frame-inhibit-implied resize. The default
behavior will not change.
> Particularly for people having multiple screens of different sizes. The
> frame
> resize poses the problem of having the frame get beyond the screen region,
> with no way to access the menu-bar.
Assuming you mean "monitor" by "screen", you can just move the frame
back inside. But the implicit resizing is more likely to cut off the
echo area than the menu bar, since the origin of the frame wrt the root
window remains unchanged.
--- End Message ---