X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fwidget.cc;h=75c3a2abbdbe7137e1688566f6d1cac819876845;hb=5673ab7e708fa0368ec8e1056a2f61ca8ba49848;hp=25d5043d2ee81adb5cfd833c7015d42b5edaebdf;hpb=74cfb1b4c115cdb4e05aa823b09d2b5ea9d0d690;p=chaz%2Fopenbox 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