From 5673ab7e708fa0368ec8e1056a2f61ca8ba49848 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 9 Feb 2003 23:39:54 +0000 Subject: [PATCH] use parentrelative when theres no texture set --- otk/widget.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.45.2