nanogui: Suggestion for adding nanowm into graphic server!
Subject:
Suggestion for adding nanowm into graphic server!
From:
"wang" ####@####.####
Date:
4 Aug 2002 11:10:59 -0000
Message-Id:
In the former mails,I have mentioned that
I want to add the nanowm into server,but I'm
not sure about it untill now.
Just as Alex has said may be it can't
contribute too much to the speed .but I think
it can do .
For the sake of keeping consistency ,I do
not want to change data structures and basic
fuction of every API .I find that acturally the
nanowm just include two parts.first it should
creat a container window as the parent of the
new client window ,second wait for the event and
deal with the event .
So if we add nanowm to the graphic server ,
we should make sure where should we implement these
two parts .for the first part ,I wanna modify the
code of Grnewwindow()[newwindow()] ,so we needn't do
it when a the client window be mapped ,at this
moment we first creat a container window structure
and then creat the client window with the container
as its parent,acturally I want to add a new parameter
to determine if we should creat a container and what
style of container we should creat ,but I'm afraid
it will do harm to the capability .and this moment
we also should creat win structure for the WM ,
calculate there position,in fact I want it complete
the work that new_client_window() does in nanowm,so
this is the first part.
For the second part .I wanna put the disposal at
the very end of the server loop .And wrap the disposal
as a fuction .so we can compile or not compile it.this
fuction should search the Gr_window structure list to
find the containner window and deal with its event .And
for speed reason we also can relink container windows
in another list.
These are my opinion ,and need any suggestion .
****************************************************************************
all my effort is to make our new graphic system faster and more stable.
wang
####@####.####
2002-08-04