summaryrefslogtreecommitdiff
path: root/otk/widget.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-09 23:39:54 +0000
committerDana Jansens <danakj@orodu.net>2003-02-09 23:39:54 +0000
commit5673ab7e708fa0368ec8e1056a2f61ca8ba49848 (patch)
treeeeb66297767529a78058ec32bd4e04c3f0a63f07 /otk/widget.cc
parent07a7f6a31a06548e98ed10a3a68851db54ff4034 (diff)
use parentrelative when theres no texture set
Diffstat (limited to 'otk/widget.cc')
-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