nanogui: Nanowm information


Previous by date: 3 Oct 2006 22:39:35 +0100 Re: Is nano-X appropriate for this application?, Greg Haerr
Next by date: 3 Oct 2006 22:39:35 +0100 Re: Using own true type font with Nano-X, Kiran Mahajan
Previous in thread: 3 Oct 2006 22:39:35 +0100 Nanowm information, Prafulla WADASKAR
Next in thread:

Subject: Re: [nanogui] Nanowm information
From: "Greg Haerr" ####@####.####
Date: 3 Oct 2006 22:39:35 +0100
Message-Id: <0a1c01c6e734$6abf10a0$0300a8c0@RDP>

: I am trying to understand how nano-x windows manager (nanowm) works in the
: practicle scenario along with nano-X server.
: In general, there should be graphics server and window manger on top of so
: any request from application goes through windows manager to GUI server.
: But in case of nano-x; applications works directly on nano-X where as if
: started windows manager you get additional contols in your graphics

All nano-X applications, including the window mgr
nanowm, make a connection to the nano-X server.
There is nothing special about the nanowm
application.  It selects on an event, known
as CHLD_UPDATE, on the root window.  When
an top-level window is created by an application,
(which is by definition a child of the root
window), then the nano-X server sends an
event to any application registered for them,
which includes nanowm.  Nanowm then gets information
about the window, using GrGetWindowInfo, and
"reparents" the window, using GrReparentWindow,
to a new "frame" window of the root.
This causes a window to be inserted between the
application's original window and the root.
The nanowm manager carefully manages the size
of this window to exactly fit (envelope) the
original window, and then paints a "frame"
around the new parent window.  The effect
is an illusion that the application window
has a frame, close box, etc.  When the
close box is pressed, nanowm sends an event
to the application owning the original window,
to close the window. etc.

Regards,

Greg


Previous by date: 3 Oct 2006 22:39:35 +0100 Re: Is nano-X appropriate for this application?, Greg Haerr
Next by date: 3 Oct 2006 22:39:35 +0100 Re: Using own true type font with Nano-X, Kiran Mahajan
Previous in thread: 3 Oct 2006 22:39:35 +0100 Nanowm information, Prafulla WADASKAR
Next in thread:


Powered by ezmlm-browse 0.20.