use parentrelative when theres no texture set

This commit is contained in:
Dana Jansens 2003-02-09 23:39:54 +00:00
parent 07a7f6a31a
commit 5673ab7e70

View file

@ -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