[comp.windows.x] the 17th most often asked question

RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) (05/24/88)

    Date: 23 May 88 11:57:56 GMT
    From: dana@bellcore.bellcore.com  (Dana A. Chee)

    Why is it that you CAN'T find out the border of a window?

The protocol explicitly allows you to call FreePixmap after storing a
pixmap as the border/background of a window.  This removes the
association between the resource id and the object; the object itself
will be recycled if and when there are no other references to it within
the server.  If a client asks for the value of such a border, there is
no associated resource id that the server can return.  And the server
shouldn't really cons one up, because resource id assignment is done by
the clients.  Similar arguments hold for GC components like tiles and
stipples.  Since the server may arbitrarily transform such data for the
specific use, it might be argued that clients should be encouraged to
free such objects after storing, to minimize resource consumption in the
server.  In the same vein, the server might transform a border_pixel/
background_pixel into a pixmap filled with that value.  At any rate,
rather than return None or something for these cases, the protocol
simply omits the ability to read back such values.

dana@THUMPER.BELLCORE.COM (Dana A. Chee) (05/24/88)

Ah, merci, I now understand.  Thanks.

			Dana Chee
			Bellcore
			MRE 2Q-250
			(201) 829-4488
			dana@bellcore.com