Tk Source Code

View Ticket
Login
Ticket UUID: 220280
Title: wish -use doesn't work when use target is the root window
Type: Bug Version: final: 8.0.5
Submitter: welch Created on: 2000-10-31 23:01:33
Subsystem: 67. Unix Window Operations Assigned To: nobody
Priority: 1 Zero Severity:
Status: Closed Last Modified: 2001-03-23 02:37:03
Resolution: Invalid Closed By: dgp
    Closed on: 2001-03-22 19:37:03
Description:
OriginalBugID: 4205 Bug
Version: 8.0.5
SubmitDate: '2000-02-22'
LastModified: '2000-03-06'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Linux-Red Hat
OSVersion: redhat linux 6.1
ClosedDate: '2000-03-06'


Name:
John Heidemann

ReproducibleScript:
#!/usr/bin/wish
# Should create a red square in the corner of of the root when invoked
# with "wish -use 0x26 script"  (assuming 0x26 is the root window,
# as determined with xwininfo).
# Instead, just makes a new toplevel.
frame .g
.g config -width 50  -height 50 -bg red
pack .g

ObservedBehavior:
The script should allow one to write to the root window, but it just makes a new toplevel.

DesiredBehavior:
The script should allow one to write to the root window, but it just makes a new toplevel.



This is the correct behavior, as the root window is a special case
and the window manager will handle it in its own way. 
-- 03/06/2000 hobbs