Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!tut.cis.ohio-state.edu!oscsuna.osc.edu!heinlein.osc.edu!spencer From: spencer@heinlein.osc.edu (Stephen Spencer) Newsgroups: comp.windows.x Subject: How can an application know its TRUE location? Message-ID: <299@oscsuna.osc.edu> Date: 4 Sep 89 16:15:54 GMT Sender: news@oscsuna.osc.edu Distribution: usa Lines: 24 (Reply to 'spencer@heinlein.cgrg.ohio-state.edu' please.) How can an application know that is has been moved by the window manager? For example, (and this is under 'awm' on a Sun 3/60, X.V11R3, with Xt stuff) I can start up an application (transient Shell Widget, bulletinWidget and several pushbuttonWidgets on the bulletin 'board'). The application gets drawn at (x, y) (the way I have 'awm' set up I can choose where the application comes up by moving the mouse and single-clicking). I can do a XtGetValues() with XtNx, XtNy as parameters on 'toplevel' and get the proper x,y coordinates of the application. Now. I use the window manager to move this application. Doing the XtGetValues() as before yields the same x, y coordinates even though I've moved the application. Is there some simple way of determining the TRUE location of an application? Sorry if this is a simple question to answer, but I'm scratchin' my head on this one. Thanks for any help you all can offer. -=- Stephen N. Spencer |"For a successful technology, reality must take ACCAD, 1224 Kinnear Rd. | precedence over public relations, for Nature Columbus OH 43212 | cannot be fooled." - Richard P. Feynman spencer@heinlein.cgrg.ohio-state.edu OR spencer@cis.ohio-state.edu