[comp.windows.x] Interaction Problem between awm and the Toolkit - window position

jensen@gt-eedsp.UUCP (P. Allen Jensen) (09/23/88)

I was playing with some example code from Richard Hesketh (rlh2@ukc.ac.uk)
for showing how popup menus are created in the toolkit.  The program creates
a commandWidget in a formWidget which controls the popup menu.  When the
menu is 'popped,' the program uses XtTranslateCoord to get the position
relative to the root window to place the popup shell just below the
controling commandWidget.  The problem I ran into was that the popup
always ended up in the upper-left corner of the screen as though the
commandWidget was located at (0,0) !  I was using awm and positioning the
commandWidget's window using awm.  When I ran the program with the
-geometry option to locate the commandWidget, the popup appeard at
the correct place !

Q: Is this a bug in the way awm positions a window or is it a bug in how the
   Toolkit decides where the Widget is located ?

Q: Has anyone else encountered this problem and found a solution ?

Q: Has the problem been addressed in X11R3 ?
---
P. Allen Jensen
-- 
P. Allen Jensen
Georgia Tech, School of Electrical Engineering, Atlanta, GA  30332-0250
USENET: ...!{allegra,hplabs,ihnp4,ulysses}!gatech!gt-eedsp!jensen
INTERNET: jensen@gteedsp.gatech.edu

asente@decwrl.dec.com (Paul Asente) (09/23/88)

If your window manager does not keep the application up-to-date with
WM_MOVED messages, XtTranslateCoords will not give the right answers.

	-paul asente
	    asente@decwrl.dec.com	decwrl!asente