Dear Laurent Thomas,

You are quite right: the layout popup window is not notified to
the window manager, because it is an override Shell widget. Moreover
it takes exclusive control of the application. It will therefore
relinquish control to the application only when it is popped down
again when the editing of the layout rule is finished. I have
implemented it in this way, because it would otherwise be possible for
a user to select another syntactic construct while he is editing
one, which is not very desirable (Do we update the layout popup
or do we ignore the new selection?)

The layout popup window is centered around the current location of
the mouse. I therefore see two possible solutions for your problem

1) Always leave enough free space above your application
2) Edit the file editmain.c in the directory libedt in the following way

   The 6 lines from line 536 code the centering of the popup widget:

          StartArgs;
          SetArg (XtNwidth, 0);
          SetArg (XtNheight, 0);
          XtGetValues (layout_popup, UseArgs);
          root_x -= WidgetArgs[0].value/2;
          root_y -= WidgetArgs[1].value/2;

   If you comment them out, the popup widget will popup below
   the current location of the mouse. Similar actions can be
   taken for the load and save popups.

I hope this helps.

				 Best regards,

				 Marc Seutter,
				 (marcs@cs.kun.nl)
