Tk Source Code

View Ticket
Login
2026-11-10
14:34 • Closed ticket [586f722c]: New test winfo-4.8 fails plus 8 other changes artifact: bce8cb86 user: nemethi
14:28
Fix for [586f722cdd]: New test winfo-4.8 fails check-in: 5a03b015 user: csaba tags: core-8-6-branch
14:24
Fix for [586f722cdd]: New test winfo-4.8 fails check-in: 2431c82b user: csaba tags: core-9-0-branch
14:20
Fix for [586f722cdd]: New test winfo-4.8 fails check-in: d25d2eeb user: csaba tags: trunk, main
2026-10-24
08:38 • Ticket [586f722c] New test winfo-4.8 fails status still Open with 4 other changes artifact: 81d1e678 user: serhiy.storchaka
08:35
Fix [586f722cdd] and [220856ffff] in Tk_CoordsToWindow() on X11. A toplevel that was just withdrawn was still found while the window manager had not yet unmapped its frame, which made winfo-4.8 fail with a slow window manager; new test winfo-4.9. With a virtual root window manager, the point was checked against the toplevel with coordinates relative to the wrong window, and the search stopped at the first toplevel found in a frame, so [winfo containing] returned "" there (since 8.6.10). closed check-in: 8a0667c7 user: serhiy.storchaka tags: x11-coords-to-window
2026-05-27
15:13 • New ticket [586f722c] New test winfo-4.8 fails. artifact: 9fe7ea9c user: dgp

Ticket UUID: 586f722cdd18031f93928104649e8353fb89ca7a
Title: New test winfo-4.8 fails
Type: Bug Version: 9.0.5, 9.1.0
Submitter: dgp Created on: 2026-05-27 15:13:49
Subsystem: 65. Generic Window Operations Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-11-10 14:34:52
Resolution: Fixed Closed By: nemethi
    Closed on: 2026-11-10 14:34:52
Description:
==== winfo-4.8 "winfo containing": don't consider unmapped toplevel windows (bug #591829e948-B) FAILED
==== Contents of test case:

    toplevel .one
    wm geometry .one 200x200+350+100
    after 10; update
    wm withdraw .one
    after 10; update
    winfo containing 450 200

---- Result was:
.one
---- Result should have been (exact matching):

==== winfo-4.8 FAILED
User Comments: nemethi (claiming to be Csaba Nemethi) added on 2026-11-10 14:34:52:

Serhiy, many thanks! Merged into main, core-9-0-branch, and core-8-6-branch by commits [d25d2eeb], [2431c82b], and [5a03b015].


serhiy.storchaka added on 2026-10-24 08:38:39:

This is a race: wm withdraw unmaps the toplevel at once, but its window manager frame stays mapped until the window manager handles the unmap, and Tk_CoordsToWindow() still returned the toplevel. With a slow window manager, after 10 is not enough.

Fixed on branch x11-coords-to-window ([8a0667c7fc]): a toplevel which is not mapped is not returned. New test winfo-4.9 has no delay; without the fix it failed under openbox and icewm in every run.