Path: utzoo!attcan!uunet!decwrl!elroy.jpl.nasa.gov!ames!dftsrv!etac632!joe From: joe@etac632 (Joe Fulson-Woytek) Newsgroups: comp.windows.x Subject: Getting window position Message-ID: <2919@dftsrv.gsfc.nasa.gov> Date: 27 Jul 90 14:26:40 GMT Sender: news@dftsrv.gsfc.nasa.gov Reply-To: joe@etac632.gsfc.nasa.gov (Joe Fulson-Woytek) Organization: NSESCC, Goddard Space Flight Center, Greenbelt MD Lines: 20 I have written the standard "helloworld" program as described in the "Introduction to the X Window System" by Oliver Jones. My goal is to use X on an Iris, a Sun, and an HP. The basic program works on all 3. My next step was to find the position and size of the X window after an expose event. The likely candidates seemed to be XGetGeometry or XGetWindowAttributes. Either of these work fine on the Iris. BUt on both the HP and the Sun, the size is right but the x and y position come out as 0, 0 (I should note that I do an XGetGeometry before the Event loop and it returns the correct x and y position - I only have problems within the event loop). I next tried to check for a ConfigureNotify event and use the XConfigureEvent structure to get the x and y. This also returned a 0,0 on the Sun (I haven't tried the ConfigureNotify on the other systems). One more note - the problem is with the server - I can run my program on the HP or Sun and display on the IRIS and get the window position. Any suggestions would be greatly appreciated. Joe FUlson-Woytek