Path: utzoo!attcan!uunet!ns-mx!iowasp!deimos!ux1.cso.uiuc.edu!uwm.edu!rpi!zaphod.mps.ohio-state.edu!think!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Bug in XGetWindowAttributes in x11r3 Message-ID: <9002221333.AA00978@expire.lcs.mit.edu> Date: 22 Feb 90 13:33:45 GMT References: <1151@sdrc.UUCP> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 18 Therefore calls to XGetWindowAttributes or XGetWindowGeometry return -1, -1 for the location. I'd say you're running under a reparenting window manager, and the coordinates are relative to the window manager's frame, not the root window. Can anyone say how to get the correct location of a window; Try XTranslateCoordinates. how to get XConfigureWindow to work; Should work as far as I know. or a good way to get subwindows to resize along with their parent? Try using a toolkit. :-)