Tk Source Code

View Ticket
Login
2026-11-06
15:25 • Closed ticket [6fa2369e]: X11: under Mutter wm geometry of a zoomed toplevel is offset by the invisible borders plus 7 other changes artifact: 3e205c64 user: nemethi
15:07
Fix for [220791]: Window gives false geometry information; Fix for [6fa2369ec6]: X11: under Mutter wm geometry of a zoomed toplevel is offset by the invisible borders check-in: ce2acb17 user: csaba tags: core-8-6-branch
14:51
Fix for [220791]: Window gives false geometry information; Fix for [6fa2369ec6]: X11: under Mutter wm geometry of a zoomed toplevel is offset by the invisible borders check-in: 9b7360b5 user: csaba tags: core-9-0-branch
14:32
Fix for [220791]: Window gives false geometry information; Fix for [6fa2369ec6]: X11: under Mutter wm geometry of a zoomed toplevel is offset by the invisible borders check-in: 6790de40 user: csaba tags: trunk, main
2026-11-05
20:36 • Ticket [220791ff] Window gives false geometry information status still Open with 3 other changes artifact: e3ee7bf2 user: serhiy.storchaka
17:03 • Ticket [6fa2369e] X11: under Mutter wm geometry of a zoomed toplevel is offset by the invisible borders status still Open with 3 other changes artifact: de0d8c03 user: serhiy.storchaka
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:46 • Ticket [6fa2369e] X11: under Mutter wm geometry of a zoomed toplevel is offset by the invisible borders status still Open with 3 other changes artifact: 53ac7e55 user: serhiy.storchaka
15:29 • New ticket [6fa2369e]. artifact: 437b4935 user: serhiy.storchaka

Ticket UUID: 6fa2369ec654ec009b4dd061abb75aa91c307092
Title: X11: under Mutter wm geometry of a zoomed toplevel is offset by the invisible borders
Type: Bug Version: 8.6.18, 9.0.5, 9.1.1
Submitter: serhiy.storchaka Created on: 2026-11-05 15:29:59
Subsystem: 67. Unix Window Operations Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-11-06 15:25:02
Resolution: Fixed Closed By: nemethi
    Closed on: 2026-11-06 15:25:02
Description:

Mutter puts invisible borders (for resizing and the shadow) around the frame of a normal window and reports them in _GTK_FRAME_EXTENTS on the frame window, here 14, 14, 12 and 17 pixels. Tk does not take them into account. After zooming and restoring a window placed at +303+210, wm geometry reports either the zoomed window at +-14+-12 instead of +0+0, or the restored one at +289+198; which of the two varies from run to run. Tests wm-geometry-2.3 and 2.4 fail under Mutter for this reason.

User Comments: nemethi (claiming to be Csaba Nemethi) added on 2026-11-06 15:25:02:

Serhiy, many thanks! Merged into main, core-9-0-branch, and core-8-6-branch by commits [6790de40], [9b7360b5], and [ce2acb17].


serhiy.storchaka added on 2026-11-05 17:03:59:

Proposed fix in branch x11-gtk-frame-extents: Tk reads _GTK_FRAME_EXTENTS of the frame window and leaves the invisible borders out of the position and size of the frame. No new test: wm-geometry-2.3 and 2.4 cover it when run under Mutter.


serhiy.storchaka added on 2026-11-05 16:46:39:

The same offset appears after leaving fullscreen and after deiconifying a withdrawn window: a window placed at +303+210 is reported at +289+198 after leaving fullscreen, and a window moved to +100+100 while withdrawn is shown at +86+88.