unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size
@ 2022-09-12 21:45 uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13  2:28 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 9+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-12 21:45 UTC (permalink / raw)
  To: 57758

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))







^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size
  2022-09-12 21:45 bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13  2:28 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13  3:20   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 9+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13  2:28 UTC (permalink / raw)
  To: uzibalqa; +Cc: 57758

uzibalqa <uzibalqa@proton.me> writes:

> 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".

Not a bug.  On most builds, setting frame-inhibit-implied-resize to t
should resolve that problem.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size
  2022-09-13  2:28 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13  3:20   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13  3:52     ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13  3:55     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 9+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13  3:20 UTC (permalink / raw)
  To: Po Lu; +Cc: 57758

------- Original Message -------
On Tuesday, September 13th, 2022 at 2:28 AM, Po Lu <luangruo@yahoo.com> wrote:


> uzibalqa uzibalqa@proton.me writes:
> 
> > 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".
> 
> 
> Not a bug. On most builds, setting frame-inhibit-implied-resize to t
> should resolve that problem.

Why does a resize happen and why is it not a bug?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size
  2022-09-13  3:20   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13  3:52     ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13  3:55     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 9+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13  3:52 UTC (permalink / raw)
  To: uzibalqa; +Cc: Po Lu, 57758

------- Original Message -------
On Tuesday, September 13th, 2022 at 3:20 AM, uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> wrote:


> ------- Original Message -------
> On Tuesday, September 13th, 2022 at 2:28 AM, Po Lu luangruo@yahoo.com wrote:
> 
> 
> 
> > uzibalqa uzibalqa@proton.me writes:
> > 
> > > 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".
> > 
> > Not a bug. On most builds, setting frame-inhibit-implied-resize to t
> > should resolve that problem.
> 
> 
> Why does a resize happen and why is it not a bug?

Should I use 

(setq frame-inhibit-implied-resize t) 

before calling

(toggle-frame-fullscreen) ? 

Then reset it again with 

(setq frame-inhibit-implied-resize nil) 

when going to the normal frame size?

I do not think I would have to change frame-inhibit-implied-resize before
going fullscreen, but only before going back to the original frame size.










^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size
  2022-09-13  3:20   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13  3:52     ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13  3:55     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13  4:05       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 9+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13  3:55 UTC (permalink / raw)
  To: uzibalqa; +Cc: 57758

uzibalqa <uzibalqa@proton.me> writes:

> Why does a resize happen and why is it not a bug?

Because changing the state of the tool bar and/or menu bar changes the
size of the frame.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size
  2022-09-13  3:55     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13  4:05       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13  4:56         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 9+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13  4:05 UTC (permalink / raw)
  To: Po Lu; +Cc: 57758

------- Original Message -------
On Tuesday, September 13th, 2022 at 3:55 AM, Po Lu <luangruo@yahoo.com> wrote:


> uzibalqa uzibalqa@proton.me writes:
> 
> > Why does a resize happen and why is it not a bug?
> 
> 
> Because changing the state of the tool bar and/or menu bar changes the
> size of the frame.

It makes more sense to change the size of the window instead of the frame.
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. 







^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size
  2022-09-13  4:05       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13  4:56         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13 11:57           ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 9+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13  4:56 UTC (permalink / raw)
  To: uzibalqa; +Cc: 57758-done

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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size
  2022-09-13  4:56         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13 11:57           ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13 13:00             ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 9+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13 11:57 UTC (permalink / raw)
  To: Po Lu; +Cc: 57758-done

------- Original Message -------
On Tuesday, September 13th, 2022 at 4:56 AM, Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> wrote:


> 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.

Yes, it meant the screen.






^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size
  2022-09-13 11:57           ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13 13:00             ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 9+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13 13:00 UTC (permalink / raw)
  To: uzibalqa; +Cc: Po Lu, 57758-done

------- Original Message -------
On Tuesday, September 13th, 2022 at 11:57 AM, uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> wrote:


> ------- Original Message -------
> On Tuesday, September 13th, 2022 at 4:56 AM, Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" bug-gnu-emacs@gnu.org wrote:
> 
> 
> 
> > 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.
> 
> 
> Yes, it meant the screen.
 
The monitor





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-09-13 13:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-12 21:45 bug#57758: Using menu-bar-mode and tool-bar-mode changes frame size uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13  2:28 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13  3:20   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13  3:52     ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13  3:55     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13  4:05       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13  4:56         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13 11:57           ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13 13:00             ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).