[comp.windows.x] GetWindowAttributes is deterministic, but the environment isn't

RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) (06/01/88)

    Date: Sun, 29 May 88 21:24:18 +0200
    From: Oliver Laumann <net%TUB.BITNET@mitvma.mit.edu>

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

	XConfigureWindow (d, w, CWX, &wc);
	XGetWindowAttributes (d, w, &wa);

Some window managers, uwm included, cause the server to redirect certain
requests.  As a result, the request is not executed immediately, but
turns into an event to the window manager, who then (eventually) acts on
it.  The ConfigureWindow request is being redirected by uwm, and uwm may
or may not have a chance to receive and re-execute the request before
your client's GetWindowAttributes request is executed.

oj@apollo.uucp (Ellis Oliver Jones) (06/02/88)

>    From: Oliver Laumann <net%TUB.BITNET@mitvma.mit.edu>
>
>    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