Tk Source Code

View Ticket
Login
Ticket UUID: 37a723eadd5c4ad7b2eda77b5f9ec37576397066
Title: wm-transient-2.2 fails on macOS
Type: Bug Version: core-8-6-branch
Submitter: fvogel Created on: 2018-07-01 15:37:16
Subsystem: 66. Aqua Window Operations Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2018-07-04 08:44:17
Resolution: Fixed Closed By: fvogel
    Closed on: 2018-07-04 08:44:17
Description:

wm-transient-2.2 fails on macOS

==== wm-transient-2.2 first toplevel parent of non-toplevel master is used FAILED
==== Contents of test case:

    toplevel .master
    frame .master.f
    toplevel .subject
    wm transient .subject .master.f
    wm transient .subject

---- Result was:
.master.f
---- Result should have been (exact matching):
.master
==== wm-transient-2.2 FAILED

User Comments: fvogel added on 2018-07-04 08:44:17:
Merged to core-8-6-branch and trunk.

fvogel added on 2018-07-01 15:43:43:

This is because even if there is now code to walk up the window hierarchy until it reaches a real toplevel and then uses that as transient (see [ba4117fa44]), the macOS code version still directly sets objv[3] as masterWindowName.

Proposed fix is therefore [3166ee3dac]