Tk Source Code

Check-in [7ab79e1a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [3598564fff]: the default maximum size of a toplevel did not take into account the taskbar or panels, so a window whose natural size was larger than the screen extended under them. The default maximum size is now that of the work area, less the decorations of the window: of the monitor on Windows, from _NET_WORKAREA on X11, and the visible frame on macOS as before. On X11 the size of the decorations is used once it is known, instead of a fixed guess, and the natural size is recomputed when it changes. On X11 and macOS the natural size is now limited by the default maximum size, as it was on Windows. On X11 a toplevel is placed below the menubar also when the menubar height changes but the size of the wrapper does not. Tests wm-maxsize-2.6 and 2.7. Rebased on main.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | default-maxsize-workarea
Files: files | file ages | folders
SHA3-256: 7ab79e1ad802a0d7493414fafa4d6e70d22ac47720567deff67d0321125b1be4
User & Date: serhiy.storchaka 2026-11-05 14:58:47.087
Context
2026-11-06
08:54
Rebase to main closed check-in: a0e386c4 user: serhiy.storchaka tags: default-maxsize-workarea
2026-11-05
14:58
Fix [3598564fff]: the default maximum size of a toplevel did not take into account the taskbar or panels, so a window whose natural size was larger than the screen extended under them. The default maximum size is now that of the work area, less the decorations of the window: of the monitor on Windows, from _NET_WORKAREA on X11, and the visible frame on macOS as before. On X11 the size of the decorations is used once it is known, instead of a fixed guess, and the natural size is recomputed when it changes. On X11 and macOS the natural size is now limited by the default maximum size, as it was on Windows. On X11 a toplevel is placed below the menubar also when the menubar height changes but the size of the wrapper does not. Tests wm-maxsize-2.6 and 2.7. Rebased on main. check-in: 7ab79e1a user: serhiy.storchaka tags: default-maxsize-workarea
14:39
Fix for [557441302b]: wm geometry returns wrong position for zoomed toplevels check-in: b362a698 user: csaba tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to doc/wm.n.
Changes to macosx/tkMacOSXWm.c.
Changes to tests/wm.test.
Changes to unix/tkUnixWm.c.
Changes to win/tkWinWm.c.