OriginalBugID: 1441 Bug
Version: 8.0.3
SubmitDate: '1999-03-04'
LastModified: '2000-01-06'
Severity: MED
Status: Assigned
Submitter: pat
ChangedBy: hobbs
OS: HP-UX
OSVersion: B.10.20/A
Machine: Other
FixedInVersion: 8.3b1
Name: Stephen Totten
ReproducibleScript:
/stephent $ wish
% winfo geometry .
200x200+120+120
% wm geometry . 200x200+120+120
% winfo geometry .
200x200+120+120
% wm geometry . 200x200+130+130
% winfo geometry .
200x200+138+160
% winfo x .
138
% winfo y .
160
% winfo rootx .
138
% winfo rooty .
160
%
ObservedBehavior:
Window gives out bad geometry information, i.e. 200x200+138+160.
DesiredBehavior:
Window gives out correct geometry information, i.e. 200x200+130+130.
Verified the screwy behavior, although it is partly due to
decoration, although there is likely more involved.
-- 01/06/2000 hobbs
winfo geometry gives info about the window itself, and wm geometry gives info about the decorated window (which is actually a separate window wrapped about Tk.) Well, normally at least. The specification of what the wm version *actually* means is somewhat non-obvious since it is really dealing with a hint to the window manager as to where the program/user would like the window to go, but the manner of implementation of this hint is not always obvious. Or seemingly even always consistent. :^(
IOW, I've no idea if this is a real bug, or just strangeness completely beyond our control...
Logged In: YES
user_id=80530
this little buggy got lost. will you give him a home?
Logged In: YES
user_id=564039
I submitted this finding to tcl trackers. the tracker id is
657282 assigned to das. I also submiitted the test program
so you should be testing it and see the behavior.
Thanks,
Logged In: YES
user_id=68433
Reassigning to me. I know what causes this (details too
long to fit in the margin of this bug report), and it will
probably take a TIP to fix.
Logged In: YES
user_id=2029956
Originator: NO
I've tested this with Tk 8.5.2.0.284581 (teapot) on Linux and can confirm this bug is still present.
This does not occur with 8.5.7 on Windows but can be seen with 8.5.8 on Linux (compiz window manager). The [winfo] and [wm] geometries agree though.
% package require Tk
8.5.8
% winfo geometry .
200x200+1+25
% wm geometry . 200x200+120+120
% wm geometry .
200x200+121+145
% winfo geometry .
200x200+121+145
% list [winfo x .] [winfo y .] [winfo rootx .] [winfo rooty .]
121 145 121 145