Tk Source Code

View Ticket
Login
Ticket UUID: a3fb7e5cae499d1f3197807b60cbca231fbb8324
Title: Test resetWindows-4b705991cf fails for window managers imposing a minimum size on toplevels
Type: Bug Version: trunk
Submitter: erikleunissen Created on: 2026-01-18 11:49:21
Subsystem: 86. Test Tools Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-01-26 21:03:14
Resolution: Fixed Closed By: erikleunissen
    Closed on: 2026-01-26 21:03:14
Description:
Observed failure on win32:

==== resetWindows-4b705991cf Reset of root window geometry is effective. Bug #4b705991cf FAILED
==== Contents of test case:

    . configure -width 123 -height 123
    wm geometry . +123+123
    update
    resetWindows
    lappend result [wm geometry .]
    pack [frame .f -width 50 -height 30 -bg blue]
    update
    lappend result [winfo width .] [winfo height .]

---- Result was:
200x200+100+100 116 30
---- Result should have been (exact matching):
200x200+100+100 50 30
==== resetWindows-4b705991cf FAILED

Apparently, win32 does not allow toplevel widths less than 116.

B.t.w. this is a shortcoming of the test, not of the proc resetWindows.
User Comments: erikleunissen added on 2026-01-26 21:03:14:
Merged bugfix branch into trunk and core-9-0-branch.
Closing the ticket now.

erikleunissen added on 2026-01-18 16:06:57:
On second thoughts, I removed the change that isn't related to the bug.

erikleunissen added on 2026-01-18 12:17:51:
Review of the proposed fix is welcomed.

erikleunissen added on 2026-01-18 12:06:06:
That's commit [c4f1245325].

That commit also includes a small improvement for proc resetWindows. But that is unrelated to the observed bug.

erikleunissen added on 2026-01-18 12:03:23:
A proposed fix is in branch "bug-a3fb7e5cae"

erikleunissen added on 2026-01-18 11:56:19:
An investigation was conducted, using the attached script minsize.tcl, among the
following windowing systems/window managers:

x11: no wm (i.e. the bare display server), e16, fluxbox, fvwm, icewm,
     KDE/Plasma, metacity, Openbox, TWM, WindowMaker, Xvwm
win32, macOS/aqua

This revealed the following minimum sizes:

ws/wm			width	height
-------------------------------------------------
win32			116	1
x11, KDE/Plasma		8	33
x11, WindowMaker	5	5

The other windowing systems / window managers in the list did not impose a minimum.

Attachments: