Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!mailrus!tut.cis.ohio-state.edu!rutgers!mit-eddie!uw-beaver!cornell!rochester!pt.cs.cmu.edu!spice.cs.cmu.edu!healy From: healy@spice.cs.cmu.edu (James Healy) Newsgroups: comp.windows.x Subject: Re: Window manager geometry updating. Keywords: Window managers, geometry, reparenting. Message-ID: <2790@pt.cs.cmu.edu> Date: 25 Aug 88 17:18:00 GMT Sender: netnews@pt.cs.cmu.edu Organization: Carnegie-Mellon University, CS/RI Lines: 15 Thanks for the responses. It seems that both twm and awm reparent each window on the screen with same-size windows underneath the ones you see. When a titlebar (or other decoration) gets put on a window, the parent window is extended upward a little bit and the titlebar ornaments get drawn in this area at the top. The x and y attributes of the window are reported with respect to this parent window, not the root window. Since the parent window always follows the window you see on the screen, the x and y coordinates never change. To get the coordinates with respect to the root window, use the XTranslateCoordinates function. --Jim Healy. ARPANET: healy@spice.cs.cmu.edu BITNET: healy%spice.cs.cmu.edu@cmccvb UUCP: ...!{uunet, ucbvax, harvard}!spice.cs.cmu.edu!healy