nanogui: Window Mapping & Unmapping Revisited


Previous by date: 8 Mar 2006 23:17:24 +0000 Re: updating window, Robbie
Next by date: 8 Mar 2006 23:17:24 +0000 compile error when enabling freetype on arm processor, tj
Previous in thread: 8 Mar 2006 23:17:24 +0000 Re: Window Mapping & Unmapping Revisited, Aaron J. Grier
Next in thread:

Subject: Re: [nanogui] Re: Window Mapping & Unmapping Revisited
From: "Greg Haerr" ####@####.####
Date: 8 Mar 2006 23:17:24 +0000
Message-Id: <0cec01c64306$687969d0$6401a8c0@winXP>

: > ...then at this point, should the contents of the root window not be
: > redisplayed?

As Aaron wrote, whenever a previously hidden portion of
any window is able to be displayed, the nano-X server
(not the window manager) generates the appropriate
expose events and sends them to the appropriate windows.
The windows are then responsible to redraw portions of
the newly-exposed window.  If the window does not
have the NOBACKGROUND bit set, then nano-X will
clear the exposed area to the background color specified
in the GrNewWindow call, before sending the expose event.

The nanowm window manager will normally set the root
window's background color to green, rather than black,
so when its running, the background color is different.
The window manager intercepts map events to draw
a container around the window, making it look like
a windows or linux "window".  Other than that,
the window manager doesn't interfere with drawing
any portion of the insides of any window.

Regards,

Greg


:
: only if you've set it up that way.  (:
:
: > Please forgive my naïveté, but do I have to use the window manager
: > (nanowm) to make this happen?
:
: after your window is drawn and erased, nano-X will generate an expose
: event to the root window, telling it which area(s) need to be redrawn.
: the window manager checks for these events and does appropriate
: notifications/callbacks to get things done.  if you're using a
: backing-store (offscreen) buffer, these expose events are
: straightforward GrCopyArea calls.  if you don't have backing store,
: you'll need to regenerate the missing data somehow.
:
: nanowm is one way to handle these sorts of events.
:
: -- 
:   Aaron J. Grier  |   Frye Electronics, Tigard, OR   |  ####@####.####
:
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
:
:


Previous by date: 8 Mar 2006 23:17:24 +0000 Re: updating window, Robbie
Next by date: 8 Mar 2006 23:17:24 +0000 compile error when enabling freetype on arm processor, tj
Previous in thread: 8 Mar 2006 23:17:24 +0000 Re: Window Mapping & Unmapping Revisited, Aaron J. Grier
Next in thread:


Powered by ezmlm-browse 0.20.