GNU bug report logs - #57758
Using menu-bar-mode and tool-bar-mode changes frame size

Previous Next

Package: emacs;

Reported by: uzibalqa <uzibalqa <at> proton.me>

Date: Mon, 12 Sep 2022 21:47:02 UTC

Severity: normal

Tags: notabug

Done: Po Lu <luangruo <at> yahoo.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Po Lu <luangruo <at> yahoo.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#57758: closed (Using menu-bar-mode and tool-bar-mode changes
 frame size)
Date: Tue, 13 Sep 2022 04:58:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 13 Sep 2022 12:56:45 +0800
with message-id <87pmfz27oy.fsf <at> yahoo.com>
and subject line Re: bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size
has caused the debbugs.gnu.org bug report #57758,
regarding Using menu-bar-mode and tool-bar-mode changes frame size
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
57758: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57758
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: uzibalqa <uzibalqa <at> proton.me>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
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))




[Message part 3 (message/rfc822, inline)]
From: Po Lu <luangruo <at> yahoo.com>
To: uzibalqa <uzibalqa <at> proton.me>
Cc: 57758-done <at> debbugs.gnu.org
Subject: Re: bug#57758: Using menu-bar-mode and tool-bar-mode changes frame
 size
Date: Tue, 13 Sep 2022 12:56:45 +0800
uzibalqa <uzibalqa <at> 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.


This bug report was last modified 2 years and 251 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.