Tk Source Code

View Ticket
Login
Ticket UUID: 8a6012131638b36831870b271af22cd9d1f22d18
Title: The wm manage command does not work on current macOS versions
Type: Bug Version: 8.6
Submitter: marc_culler Created on: 2024-05-28 12:53:35
Subsystem: 66. Aqua Window Operations Assigned To: nobody
Priority: 5 Medium Severity: Severe
Status: Open Last Modified: 2024-06-22 21:34:59
Resolution: None Closed By: nobody
    Closed on:
Description:
The following commands are taken from the wm-manage-1.8 test.  The effect of
running them in wish (on macOS 14) is indicated in the comments.

toplevel .t    # a second toplevel appears
toplevel .t.t  # a third toplevel appears
button .t.t.b -text "Manage This"
pack .t.t.b    # So far so good - .t.t shrinks and shows a button
wm forget .t.t # .t.t disappears
pack .t.t      # .t gets smaller but shows no button until clicked
wm manage .t.t # A new window appears, the same size as .t.t with no button
               # The old .t window is also on the screen, and is empty

Note that wm-manage-1.8 passes on a github runner with macOS 11, but
fails on a github runner using macOS 12.
User Comments: marc_culler (claiming to be Marc Culler) added on 2024-05-28 15:28:08:
There is some relatively good news with respect to CI, if not with
respect to this problem.  When I run the test suite on my macOS system,
I do not see a failure of wm-manage-1.8, although I do see it on a CI
runner when using macOS 14.

The failures that I see on my hardware are:

font-47.2
font-47.3
frame-12.3
textImage-4.2

marc_culler (claiming to be Marc Culler) added on 2024-05-28 14:57:45:
I revised this ticket after testing on a macOS 11 VMWare instance.
There are two differences between the two OS versions.

(1) On macOS 11 the button appears when .t.t is packed, while on
macOS 14 it does not appear until there is a mouse button event in .t.t.

When .t.t is managed the button does not appear on either system.  But

(2) On macOS 11, when .t.t is managed the button does appear after the
new toplevel receives a mouse button event, but on macOS 14 no amount
of mouse activity will make the button appear.

The other important difference, useful for the purpose of receiving
green check marks on github CI in spite of having a broken command, is
that wm-manage-1.8 only passes on macOS 11.