nanogui: GrRaiseWindow and top level windows


Previous by date: 23 Aug 2002 19:34:47 -0000 Re: nano-X display server, Greg Haerr
Next by date: 23 Aug 2002 19:34:47 -0000 Re: GrRaiseWindow and top level windows, Alex Holden
Previous in thread: 23 Aug 2002 19:34:47 -0000 GrRaiseWindow and top level windows, David Muse
Next in thread: 23 Aug 2002 19:34:47 -0000 Re: GrRaiseWindow and top level windows, Alex Holden

Subject: Re: [nanogui] GrRaiseWindow and top level windows
From: "Greg Haerr" ####@####.####
Date: 23 Aug 2002 19:34:47 -0000
Message-Id: <03ef01c24ada$d515d920$3aba46a6@xmission.com>

: I have 2 microwindows applications running and I'd like either to be able to
raise itself above the other when it catches a certain event.  I assumed that
this was possible by calling GrRaiseWindow() on the top level window of the
application.  By top level, I mean the window who's parent is GR_ROOT_WINDOW.
:
: What I've found is that when an application calls GrRaiseWindow() or
GrLowerWindow() on it's toplevel window, nothing happens.  If I call
GrRaiseWindow() followed by GrSetFocus() on the top level window of the lower
application, the window does indeed get focus, but does not raise.


Well, I'm sure that GrRaiseWindow works, since that's what the window manager
uses to raise the window.  However, you may not be aware that your original
window id is reparented by the window manager, and is no longer a direct
top-level window.  Instead, you must use the new "container" window
created by the WM.  Use GrQueryTree to get this window id.

If this isn't the case, if you send me a demo program, I'll help debug it.
Also, try running without the window manager.

Regards,

Greg


Previous by date: 23 Aug 2002 19:34:47 -0000 Re: nano-X display server, Greg Haerr
Next by date: 23 Aug 2002 19:34:47 -0000 Re: GrRaiseWindow and top level windows, Alex Holden
Previous in thread: 23 Aug 2002 19:34:47 -0000 GrRaiseWindow and top level windows, David Muse
Next in thread: 23 Aug 2002 19:34:47 -0000 Re: GrRaiseWindow and top level windows, Alex Holden


Powered by ezmlm-browse 0.20.