nanogui: moving the window decoration


Previous by date: 6 Sep 2008 01:58:22 -0000 Re: VNC-Server, Yan Seiner
Next by date: 6 Sep 2008 01:58:22 -0000 Re: png strange issue, Greg Haerr
Previous in thread: 6 Sep 2008 01:58:22 -0000 moving the window decoration, Michael Schnell
Next in thread: 6 Sep 2008 01:58:22 -0000 Re: moving the window decoration, Michael Schnell

Subject: Re: [nanogui] moving the window decoration
From: "Greg Haerr" ####@####.####
Date: 6 Sep 2008 01:58:22 -0000
Message-Id: <0d1201c90fc4$275e2de0$6501a8c0@winXP>

: But doing so, only the content of the Window seems to be moved but not 
: the decoration (head-line, frame and clipping area) so that it looks as 
: if the content is moved within the decoration. So the decoration seems 
: to be an additional window that is not accessed by the window-ID i get 
: when calling GrNewWindow(). But it also does not seem to be a child 
: window (I suppose otherwise it would be moved with it's parent).

When the nanowm window manager runs, it creates an additional
window used as a window frame for all top level windows
(windows whose parent is root).  It uses GrReparentWindow
to cause this new frame window to be the parent of the
user window.  Thus, the frame window contains the user
window.  You can access this window by getting the parent
window ID of your window.

The X11 window manager works the same way but additionally
"redirects" window move requests to the frame window by
catching these events and resending them.  In general, a
top-level window shouldn't care where it is positioned exactly,
thus normally calls to GrMoveWindow on a top level window
would be considered bad manners...

Hope that helps.  Check out the code in src/demos/nanowm
for details on how the window manager does its thing and 
catches other events.

Regards,

Greg


: 
: What is the paradigm used here ? How to move the complete window ?
: 
: Thanks for any help !
: -Michael
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
: 
: 
:

Previous by date: 6 Sep 2008 01:58:22 -0000 Re: VNC-Server, Yan Seiner
Next by date: 6 Sep 2008 01:58:22 -0000 Re: png strange issue, Greg Haerr
Previous in thread: 6 Sep 2008 01:58:22 -0000 moving the window decoration, Michael Schnell
Next in thread: 6 Sep 2008 01:58:22 -0000 Re: moving the window decoration, Michael Schnell


Powered by ezmlm-browse 0.20.