Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!apollo!oj
From: oj@apollo.uucp (Ellis Oliver Jones)
Newsgroups: comp.windows.x
Subject: Re: GetWindowAttributes is deterministic, but the environment isn't
Summary: beware reparenting window managers
Message-ID: <3c684303.d5b2@apollo.uucp>
Date: 1 Jun 88 22:21:00 GMT
References: <8805291924.AA16344@tub.UUCP> <19880531195658.3.RWS@KILLINGTON.LCS.MIT.EDU>
Reply-To: oj@canyon.UUCP (Ellis Oliver Jones)
Organization: Apollo Computer, Chelmsford, MA
Lines: 12

>    From: Oliver Laumann 
>
>    Maybe I'm just dumb today, but it seems the result returned by
>    XGetWindowAttributes() is not deterministic.

One thing to add to RWS's reply:

Some window managers (uwm not included) reparent the client's top-level
window.  Thus, when you look at the x and y members of the XWindowAtttributes
structure as filled in by XGetWindowAttributes, you
may not find values relative to the root window.
/oj