[comp.windows.x] How can the pointer be positioned to a new popup widget ?

norbert@rwthinf.UUCP (Norbert Kiesel) (05/07/90)

Hello,
I've run into a problem: As I have too much autoraise windows under twm (but
they are really nice !), I run into problems when tools pop up small windows
which are over an autoraise window, as I either must iconize these autoraise
windows or else turn the autoraise feature off to reach the popup window.

The xcal tool that came across comp.sources.x is such a tool. Now I tried to
modify xcal in such a way that the pointer is always positioned on the popup
windows (which contain calendars for one month each). My problem is the
following: How and when can the actual screen position of the new widget be
found? I tried to use XtGetValues, but even afer a call to 
Xsynchronize(display, True) the returned values for x and y position of the
widget are empty (i.e. Position 0). This query is the last action in the
callback routine for the creation of the popup window.

Any ideas ?

	Thanks a lot

			Norbert


*******************************************************************************
* Norbert Kiesel	Institut f. Informatik III     NN       NN    KK   KK *
* RWTH Aachen           Ahornstr. 55  		       NNN      NN    KK  KK  *
* West Germany		D-5100 Aachen 		       NN N     NN    KK KK   *
*                       +49 241 80-7266		       NN  N    NN    KKKK    *
* 		                 		       NN   N   NN    KKKK    *
* EUNET:  norbert@rwthi3.uucp          		       NN    N  NN    KK KK   *
* USENET: ...!mcvax!unido!rwthi3!norbert	       NN     N NN    KK  KK  *
* X.400:  norbert@rwthi3.informatik.rwth-aachen.de     NN      NNN    KK   KK *
*******************************************************************************