Tk Source Code

View Ticket
Login
Ticket UUID: 220026
Title: wm geometry Unix/Windows discrepancy
Type: Bug Version: obsolete: 8.2
Submitter: welch Created on: 2000-10-31 21:57:25
Subsystem: 65. Generic Window Operations Assigned To: nobody
Priority: 1 Zero Severity:
Status: Closed Last Modified: 2000-11-01 04:59:17
Resolution: Duplicate Closed By: welch
    Closed on: 2000-10-31 21:59:17
Description:
OriginalBugID: 2856 Bug
Version: 8.2
SubmitDate: '1999-09-21'
LastModified: '2000-01-06'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 3687
OS: Other
Machine: NA
FixedInVersion: 8.3b1
ClosedDate: '2000-01-06'


Name: Hume Smith

ReproducibleScript:
#!/usr/bin/env wish
    
    # this window appears in the upper-left corner on my Win'95 machine,
    # and (almost) centered in Unix
    # wish 8.2
    
    wm overrideredirect . 1
    wm withdraw .
    button .close -text Close -command exit
    pack .close
    update
    wm geometry . +[expr {[winfo screenwidth .]/2}]+[expr {[winfo
    screenheight .]/2}]
    wm deiconify .
    
    # eof

ObservedBehavior:
did different things on the two platforms

DesiredBehavior:
ought to do the same thing on both platforms

Patch:


PatchFiles:




The patch for this was in 3687 and was applied for 8.3b1. 
-- 01/06/2000 hobbs