Subject: bug#29986: Add frame arg to toggle-frame-maximized

From: Juri Linkov <[email-masked]>
Date: Sun, 07 Jan 2018 23:30:14 +0200

>>    (add-to-list 'after-make-frame-functions
>>                 'toggle-frame-maximized)
>
> How would this behave when the frame is maximized initially by the
> windowing system/manager?  Would it then set the frame to its normal
> size?

Exactly.  But as long as the frame is not maximized initially
by the window manager, this should work fine.