Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!MITVMA.MIT.EDU!brossard%litsun2.epfl.ch From: brossard%litsun2.epfl.ch@MITVMA.MIT.EDU Newsgroups: comp.windows.x Subject: XTranslateCoordinates Message-ID: <8903171621.AA18094@litsun5.litsun2.epfl.ch> Date: 17 Mar 89 16:21:52 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 20 [Sent: Fri. 17/Mar./89 Time: 17:21] XTranslateCoordinates takes among other inputs the screen number. How does an application find the screen number? For example, I have the following line of code: XTranslateCoordinates( XtDisplay(widget), XtWindow(widget), RootWindow( XtDisplay(widget), SCREEN_NUMBER), 0, 0, &shellx, &shelly, &w ); I could hardcode SCREEN_NUMBER to be 0, but that doesn't seem right. I could use XtScreen to get at the screen pointer, but that structure doesn't seem to have any field holding the screen number. So, what am I missing? Alain Brossard brossard@litsun2.epfl.ch PS I know about XtTranslateCoords(), but it doesn't work (see next posting).