use parentrelative when theres no texture set
Dana Jansens danakj@orodu.net
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
otk/widget.cc
→
otk/widget.cc
@@ -427,7 +427,11 @@ }
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