Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: Window's absolute position Message-ID: <9006150653.AA08178@Larry.McRCIM.McGill.EDU> Date: 15 Jun 90 06:53:35 GMT Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 14 >> I need to find the absolute position of a newly created window. > Start with XGetGeometry to get the coordinates of the window relative > to it[']s parent (possibly a border window from the window manager). > Then use XTranslateCoordinates to convert these to coordinates > relative to the root or any other window. Why bother with the XGetGeometry? Why not use XTranslateCoordinates directly to translate (0,0) in the new window into root coordinates? der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu