From: Dana Jansens Date: Sun, 9 Feb 2003 23:39:54 +0000 (+0000) Subject: use parentrelative when theres no texture set X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=5673ab7e708fa0368ec8e1056a2f61ca8ba49848;p=chaz%2Fopenbox use parentrelative when theres no texture set --- 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