all repos — openbox @ 5673ab7e708fa0368ec8e1056a2f61ca8ba49848

openbox fork - make it a bit more like ryudo

use parentrelative when theres no texture set
Dana Jansens danakj@orodu.net
commit

5673ab7e708fa0368ec8e1056a2f61ca8ba49848

parent

07a7f6a31a06548e98ed10a3a68851db54ff4034

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M otk/widget.ccotk/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