summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otk/widget.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/otk/widget.cc b/otk/widget.cc
index 25d5043d..75c3a2ab 100644
--- a/otk/widget.cc
+++ b/otk/widget.cc
@@ -427,7 +427,11 @@ void Widget::layoutVert()
void Widget::render()
{
- if (!_texture || !_dirty) return;
+ if (!_dirty) return;
+ if (!_texture) {
+ XSetWindowBackgroundPixmap(**display, _window, ParentRelative);
+ return;
+ }
if (_borderwidth * 2 > _area.width() ||
_borderwidth * 2 > _area.height())
return; // no surface to draw on