The zoom/maximize button on Tk Aqua windows don't do
anything. Also, the "wm state $w zoomed" is not
implemented.
The attached patch to tkMacOSXWm.c changes
TkMacOSXZoomToplevel() to call TkpWmSetState to
zoom/unzoom, and implements "wm state $w zoomed", with
"wm state $w normal" restoring the pre-zoomed window
size/location.
The patch is versus the HEAD (8.5) but it should be
simple enough to apply manually to earlier versions.
TkAqua zoom patch
Logged In: YES
user_id=498198
Found a slight limitation with this. If you do "wm
deiconify" on a window in the zoomed state, the window
momentarily changes size, returns to its "zoomed" size, but
switches to "normal" state. Checking whether state is
zoomed or not in WmDeiconifyCmd() works to fix this,
although if you zoom, iconify, and then deiconify, it again
returns to "normal" with zoomed size. On Windows, the same
three return to "zoomed" state. This may not be a problem,
though. I'm not sure if that's handled by Windows or not.
Remind me to update the patch if someone ever gets around to
this (no time atm and target may move anyway).
Logged In: NO
Any update to this patch? Certainly latest tkAqua still
does nothing when you click the green+...
Logged In: YES
user_id=90580
committed attached patch to HEAD and core-8-4-branch, this is a rewrite of
Michael's earlier patch that fixes the deiconfy issue and respects resizable and
maxsize limits.