]> Dogcows Code - chaz/openbox/commitdiff
use parentrelative when theres no texture set
authorDana Jansens <danakj@orodu.net>
Sun, 9 Feb 2003 23:39:54 +0000 (23:39 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 9 Feb 2003 23:39:54 +0000 (23:39 +0000)
otk/widget.cc

index 25d5043d2ee81adb5cfd833c7015d42b5edaebdf..75c3a2abbdbe7137e1688566f6d1cac819876845 100644 (file)
@@ -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
This page took 0.025332 seconds and 4 git commands to generate.