An old X application behaves differently on Linux depending on whether or not you're running KDE or  GNOME.  Running Gnome, a shell that is raised with XtPopup does not rise to the top of the stack, but intead goes to the bottom.  Calls to XRaiseWindow and XMapRaised do not help in forcing it to the top.  Can anyone suggest a solution?  Thanks in advance.

/*  Raise shell.  */
    XtPopup(shell, XtGrabNone);

/*  Not raised, try and force it to the top of the stack.  */
  XRaiseWindow(XtDisplay(shell),XtWindow(shell));
  XMapRaised(XtDisplay(shell),XtWindow(shell));
  XFlush(XtDisplay(shell));
  XSync(XtDisplay(shell),False);

/*  Still not raised!  */


--

Peter 

Reply via email to