Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Background color of a window (now XWindowAttributes) Message-ID: <8811030103.AA25723@EXPO.LCS.MIT.EDU> Date: 3 Nov 88 01:03:55 GMT References: <170@tityus.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 24 Is there any effort, or chance (at this late stage in the game), to make the XSetWindowAttributes and the XWindowAttributes the same?? There is no effort within the X Consortium at this time to make such a change. My recollection is that this is one of many changes that someone has proposed to talk about at the X Conference in January. I know that this is impossible, as are (m)any changes, but what was the motivation that went into this decision? One more time (with less and less feeling). The reason is similar to why components of GCs cannot be read back either. Things that get stored into the window (or GC) as resource ids can typically be "freed" (that is, the association deleted between the resource id and the "object") without affecting what's in the window (or GC). If you then wanted to ask for the value back, the server wouldn't have a resource id to give you. For the case of background pixmap and cursor, it was assumed that you would commonly free the resource right after storing it, to minimize memory consumption in the server (since the server might have made a copy of the object at the point you stored the attribute). Rather than having GetWindowAttributes have some way of saying "I don't know", the information simply wasn't made readable from the protocol. Perhaps a bad decision (given the continual questions about it), but that was the rationale.