use parentrelative when theres no texture set
This commit is contained in:
parent
07a7f6a31a
commit
5673ab7e70
1 changed files with 5 additions and 1 deletions
|
@ -427,7 +427,11 @@ void Widget::layoutVert()
|
||||||
|
|
||||||
void Widget::render()
|
void Widget::render()
|
||||||
{
|
{
|
||||||
if (!_texture || !_dirty) return;
|
if (!_dirty) return;
|
||||||
|
if (!_texture) {
|
||||||
|
XSetWindowBackgroundPixmap(**display, _window, ParentRelative);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (_borderwidth * 2 > _area.width() ||
|
if (_borderwidth * 2 > _area.width() ||
|
||||||
_borderwidth * 2 > _area.height())
|
_borderwidth * 2 > _area.height())
|
||||||
return; // no surface to draw on
|
return; // no surface to draw on
|
||||||
|
|
Loading…
Reference in a new issue