summaryrefslogtreecommitdiff
path: root/dw/widget.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-09-17 22:05:15 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-09-17 22:05:15 +0200
commit3d530af5285a6b6238a683a87d637d22ec0855f3 (patch)
tree22edb9ec16183f1f795b6d06765fb9fffeb11d82 /dw/widget.cc
parent4fc467bb9112d4e49cc9ecbde03aa72bd805fc6d (diff)
draw topLevel background if it differs from canvas background
Diffstat (limited to 'dw/widget.cc')
-rw-r--r--dw/widget.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index 7476e246..ded963fc 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -397,7 +397,9 @@ void Widget::drawWidgetBox (View *view, Rectangle *area, bool inverse)
* widget->style->background_color is NULL (shining through).
*/
/** \todo Background images? */
- if (parent && style->backgroundColor)
+
+ if (style->backgroundColor &&
+ (parent || layout->getBgColor () != style->backgroundColor))
style::drawBackground (view, &viewArea, allocation.x, allocation.y,
allocation.width, getHeight (), style, inverse);
}