nanogui: Default Back color


Previous by date: 31 Mar 2006 08:55:40 +0100 Re: Problems with ViewMl, Greg Haerr
Next by date: 31 Mar 2006 08:55:40 +0100 nano-X with 8 bit greyscale, James Steward
Previous in thread: 31 Mar 2006 08:55:40 +0100 Re: Default Back color, Michael Bogaerts
Next in thread:

Subject: Re: [nanogui] Default Back color
From: "Greg Haerr" ####@####.####
Date: 31 Mar 2006 08:55:40 +0100
Message-Id: <136001c65498$7f016d80$6401a8c0@winXP>

: but when i now move a window into the screen, still the nanox blacks 
: the screen buring the update.
: but when i do the move the bakcground flashes to black

When a window is exposed, including the root window, which
is the screen background, the nano-X server will paint the
specified background color before sending an EXPOSE
event to the application in control of the window.  If the
nanowm window manager isn't running, then the root window
will always be cleared to its initially specified background color:
black.  To change this, you can specify a different color in
nanox/srvmain.c::GsInitialize().  Set wp->background to
the color you desire.

Also, as you've found, if you specifiy
GM_WP_PROPS_NOBACKGROUND, then the server
won't clear any color, it just sends the expose event.  When
nanowm isn't running, nothing will happen.  Its probably
not a good idea to set this flag on the root window.

Regards,

Greg




Previous by date: 31 Mar 2006 08:55:40 +0100 Re: Problems with ViewMl, Greg Haerr
Next by date: 31 Mar 2006 08:55:40 +0100 nano-X with 8 bit greyscale, James Steward
Previous in thread: 31 Mar 2006 08:55:40 +0100 Re: Default Back color, Michael Bogaerts
Next in thread:


Powered by ezmlm-browse 0.20.