Path: utzoo!attcan!uunet!snorkelwacker!usc!zaphod.mps.ohio-state.edu!sunybcs!boulder!stan!ninja!toml From: toml@ninja.Solbourne.COM (Tom LaStrange) Newsgroups: comp.windows.x Subject: Re: x[DXGetWindowe[DAttributes Message-ID: <1990Feb21.163440.7823@Solbourne.COM> Date: 21 Feb 90 16:34:40 GMT Sender: news@Solbourne.COM Organization: Solbourne Computer, Inc. Lines: 18 > For some reason, whenever I call XGetWindowAttributes or > XGetGeometry, the x, y value of the upper left hand corner > of the window is -1, -1. Does anyone know why this happens and > what I can do to get the correct values? I'll bet that you're doing the XGetWindowAttributes on your window that has been reparented by the window manager. The coordinates that you are seeing are relative to the window's parent which is probably a frmae window owned by the window manager. If you really want to know where on the root window your window is, you should track ConfigureNotify events or try XTranslateCoordinates(). -- Tom LaStrange Solbourne Computer Inc. ARPA: toml@Solbourne.COM 1900 Pike Rd. UUCP: ...!{boulder,sun}!stan!toml Longmont, CO 80501