unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19075: `toggle-frame-maximized' and `toggle-frame-fullscreen' on Windows
@ 2014-11-17  8:13 Alexander Shukaev
  2014-11-17  9:29 ` martin rudalics
  2015-02-13 18:25 ` martin rudalics
  0 siblings, 2 replies; 8+ messages in thread
From: Alexander Shukaev @ 2014-11-17  8:13 UTC (permalink / raw)
  To: 19075

[-- Attachment #1: Type: text/plain, Size: 1320 bytes --]

`init.el':

(add-hook 'window-setup-hook 'toggle-frame-maximized t)
(add-hook 'window-setup-hook 'toggle-frame-fullscreen t)

does not work as expected. Emacs goes fullscreen indeed. However, running
manually `(toggle-frame-fullscreen)' once again after Emacs loaded, does
not bring Emacs into maximized state, it rather returns to a small initial
frame (of the default size, `emacs -q' to remind yourself how it looks
like). Changing `init.el' to:

(add-to-list 'default-frame-alist '(fullscreen . maximized))
(add-hook 'window-setup-hook 'toggle-frame-fullscreen t)

does not help either.

One could think that somehow `maximized' parameter is not set, but if one
has in `init.el' only:

(add-to-list 'default-frame-alist '(fullscreen . maximized))

or

(add-hook 'window-setup-hook 'toggle-frame-maximized t)

then Emacs is loaded into maximized state indeed (*).

On the other hand in `emacs -q', if one runs

(toggle-frame-maximized)
(toggle-frame-fullscreen)

manually, and then runs `(toggle-frame-fullscreen)' manually once again,
then Emacs is brought to maximized state.

All this makes me think that there is some problem with memorizing
`maximized' parameter during `window-setup-hook', but note that this
actually contradicts (*) what makes this problem even more confusing.

It's Emacs 24.4.50 on Windows.

[-- Attachment #2: Type: text/html, Size: 1842 bytes --]

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

end of thread, other threads:[~2015-06-29  9:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-17  8:13 bug#19075: `toggle-frame-maximized' and `toggle-frame-fullscreen' on Windows Alexander Shukaev
2014-11-17  9:29 ` martin rudalics
2014-11-17  9:48   ` Alexander Shukaev
2014-11-17 10:16     ` martin rudalics
2014-11-17 16:03       ` Eli Zaretskii
2015-02-13 18:25 ` martin rudalics
2015-06-27 15:24   ` Alexander Shukaev
2015-06-29  9:45     ` martin rudalics

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