Tk Source Code

Check-in [b362a698]
Login

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

Overview
Comment:Fix for [557441302b]: wm geometry returns wrong position for zoomed toplevels
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: b362a6982f60348193739463e982a817fdff2b4251e58e45370e91f0baecced1
User & Date: csaba 2026-11-05 14:39:46.045
References
2026-11-05
16:35 • Closed ticket [55744130]: wm geometry returns wrong position for zoomed toplevels plus 7 other changes artifact: ca3deef9 user: nemethi
Context
2026-11-05
20:42
Fix [9427fb312d]: textDisp.test aborts the test run with an X error on a small screen check-in: 60c0ae12 user: jan.nijtmans tags: trunk, main
20:14
Fix [9427fb312d]: testpixel aborted the test run with an X error (BadMatch) when the pixel was not on the screen. Catch the error and report it as a Tcl error. closed check-in: 42b1cd85 user: serhiy.storchaka tags: testpixel-x-error
20:14
Fix [9427fb312d]: textDisp-42.2 to 42.9 packed their text widget into "." next to the widgets of earlier tests, so on a small screen (the 640x480 of xvfb-run on CI) it was off the screen and testpixel aborted the test run with an X error. Put the text widget into a toplevel of its own at +0+0. closed check-in: a16f0f52 user: serhiy.storchaka tags: tests-textdisp-offscreen
18:13
Merge main with untested merge conflicts on MacOS and Unix check-in: 4f5a466c user: oehhar tags: 9ab6e37e-wm-forget-dot
17:45
Fix [f23a58ce24]: X11: under KWin, wm geometry of a toplevel moved while iconified was too low by the title bar. KWin decorates windows without reparenting them, and _NET_FRAME_EXTENTS was only applied to the ConfigureNotify of a mapped window; the window is now also recomputed when it is mapped again. Test wm-iconify-3.2. closed check-in: 332e6dc6 user: serhiy.storchaka tags: x11-iconic-frame-extents
17:01
Fix [6fa2369ec6]: X11: under Mutter, wm geometry of a toplevel was offset by the invisible borders of its frame after the window manager moved it (zooming, fullscreen, restoring). Mutter draws invisible borders around the visible frame and reports them in _GTK_FRAME_EXTENTS of the frame window; leave them out of the position and size of the frame. closed check-in: b98c6a06 user: serhiy.storchaka tags: x11-gtk-frame-extents
16:13
Fix for [557441302b]: wm geometry returns wrong position for zoomed toplevels check-in: 59adf2ca user: csaba tags: core-9-0-branch
15:35
Fix [f126a096e2]: X11: wm attributes -zoomed did not maximize the window under xfwm4, and maximized it only vertically under fvwm. _NET_WM_STATE_MAXIMIZED_VERT and _NET_WM_STATE_MAXIMIZED_HORZ were requested in two separate _NET_WM_STATE messages; send them in one message, as EWMH allows. Test wm-state-2.20. closed check-in: 8900bbdc user: serhiy.storchaka tags: x11-zoom-one-message
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:49
Fix [2865578fff]: X11: the toplevel shrank when its menubar was set again while it was going fullscreen or zoomed. The size requested for the toplevel was computed before the height of the new menubar was known; the window manager could apply that request after restoring the window, and Tk took it for a resize by the user. Compute the menubar geometry before it is used. Test wm-geometry-2.6. Rebased on main. closed check-in: bd8005bc user: serhiy.storchaka tags: x11-menubar-height
14:39
Fix for [557441302b]: wm geometry returns wrong position for zoomed toplevels check-in: b362a698 user: csaba tags: trunk, main
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
2026-11-04
21:02
Fix [557441302b] also for a toplevel iconified from zoomed: on Windows wm geometry reported the position of the restored window while it was iconified. Tests wm-geometry-2.4 and 2.5. The tests wait until the window manager has finished zooming, iconifying or deiconifying the window, and place it at y=210, which KWin restores exactly at the common fractional scales. closed check-in: 3c2445af user: serhiy.storchaka tags: win-zoomed-geometry
Changes
Unified Diff Side-by-Side Diff Patch
Changes to changes.md.
Changes to tests/wm.test.
Changes to win/tkWinWm.c.