nanogui: Default Back color
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