Tk Source Code

View Ticket
Login
Ticket UUID: 1158738
Title: transient window madness
Type: Bug Version: obsolete: 8.4.11
Submitter: treectrl Created on: 2005-03-08 02:02:25
Subsystem: 68. Win Window Operations Assigned To: hobbs
Priority: 6 Severity:
Status: Open Last Modified: 2010-12-18 08:18:51
Resolution: None Closed By:
    Closed on:
Description:
On Windows XP Home SP2.
This also happens in 8.4.9.

2 examples. Copy/paste each line into the wish console 
separately, or copy all lines (except the last line) of 
each example. Comments show the problem.

# Example 1 -- transient won't show itself
toplevel .t1 ; wm withdraw .t1 ; update
toplevel .t2 ; wm withdraw .t2 ; wm transient .t2 .t1 ; 
update
wm deiconify .t1 ; update ; # Displays ok
wm deiconify .t2 ; update ; # Doesn't display
raise .t2 ; # Now displays. Or minimize .t1 and restore -
> .t2 appears

# Example 2 -- transient isn't transient
toplevel .t1 ; wm withdraw .t1 ; update
toplevel .t2 ; wm withdraw .t2 ; update
wm transient .t2 .t1 ; update
wm deiconify .t1 ; update ; # Displays ok
wm deiconify .t2 ; update ; # Displays ok, but not 
transient to .t1
wm withdraw .t1 ; update ; wm deiconify .t1 ; # Now .t2 
appears/acts transient
User Comments: hobbs added on 2005-12-01 13:32:42:
Logged In: YES 
user_id=72656

Mo - you did some bits with state management and the
"viewability" of the window - is this related?