]> Dogcows Code - chaz/openbox/blobdiff - otk/widget.cc
use parentrelative when theres no texture set
[chaz/openbox] / 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.024712 seconds and 4 git commands to generate.