Tk Source Code

Check-in [9daa5310]
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.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | default-maxsize-workarea
Files: files | file ages | folders
SHA3-256: 9daa5310c5e21306549e68431fb6e8d2bd9c210611255bdbc08508fac796f531
User & Date: serhiy.storchaka 2026-11-05 14:28:53.251
Context
2026-11-05
14:41
Use pause in wm-maxsize-2.7. closed check-in: 141f8ddd user: serhiy.storchaka tags: default-maxsize-workarea
14:28
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. check-in: 9daa5310 user: serhiy.storchaka tags: default-maxsize-workarea
11:56
Fix for [354fbe9fe6]: Windows: -appearance set with wm attributes is lost when the wrapper is recreated check-in: ca38b646 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.