wibox: Set a proper back pixel
commit02ea8feb54e56136a44eb0eab78e52d4d67c85c3
authorUli Schlachter <psychon@znc.in>
Sat, 7 Nov 2009 19:02:22 +0000 (7 20:02 +0100)
committerJulien Danjou <julien@danjou.info>
Sun, 8 Nov 2009 09:34:00 +0000 (8 10:34 +0100)
treebee44d6fa8a0ed21122d43ed74f407a5cec55db4
parent2577f945d6450656e9da02f2e5f9910324190030
wibox: Set a proper back pixel

Currently wiboxes have their background set to "inherit parent pixmap". That
means that each time a wibox is e.g. resized, the X server sets the wibox'
content to the wallpaper and then immediately awesome redraws the wibox with the
proper background. This causes flicker when you e.g. resize clients which have a
titlebar.

With this patch, wiboxes get their proper background color for their "back
pixel" value. Now, instead of showing the wallpaper, the X server will fill the
complete wibox with its background color.

With this patch, the actual widgets will still flicker. Also, if the wibox has a
background image, this image obviously won't be used by the X server and we get
some flicker again. My next patch will address these issues.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
wibox.c