nanogui: Re: about Windows redraw


Previous by date: 17 Nov 2002 01:02:16 -0000 Re: Two microwindows questions, Greg Haerr
Next by date: 17 Nov 2002 01:02:16 -0000 Hellow, Wang Xingqiang
Previous in thread: 17 Nov 2002 01:02:16 -0000 Re: about Windows redraw, Greg Haerr
Next in thread:

Subject: Re: [nanogui] Fw: about Windows redraw
From: "Greg Haerr" ####@####.####
Date: 17 Nov 2002 01:02:16 -0000
Message-Id: <09d301c28dd3$98111f30$6401a8c0@gregnewport>

: If you are using nanowm ,you will see clearly
that the window is redraw for the second time when 
be creted. first for the event GR_UPDATE_MAP,and 
later for the event GR_EVENT_TYPE_EXPOSURE,the first 
event is responded by the child window,and trigger
the EXPOSURE event ,nanomw get the event ,and draw 
the container, because the original window is children
of the container ,so it should be redraw for the 
second time.

This is correct.  However, the proper fix for
this is to re-design the way that the window
manager receives notification about windows
mapping on the root window for the first time.

My plan is implement an X11-style solution, where
the original map from the application is not
executed, and instead a CHILD_REDIRECT event
is sent to the window manager.  The window manager
then creates the container window, reparents
the application window to it, and then maps
the application window on behalf of the application.
This would result in only a single expose/update event.

Regards,

Greg



Previous by date: 17 Nov 2002 01:02:16 -0000 Re: Two microwindows questions, Greg Haerr
Next by date: 17 Nov 2002 01:02:16 -0000 Hellow, Wang Xingqiang
Previous in thread: 17 Nov 2002 01:02:16 -0000 Re: about Windows redraw, Greg Haerr
Next in thread:


Powered by ezmlm-browse 0.20.