projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07a7f6a
)
use parentrelative when theres no texture set
author
Dana Jansens
<danakj@orodu.net>
Sun, 9 Feb 2003 23:39:54 +0000
(23:39 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 9 Feb 2003 23:39:54 +0000
(23:39 +0000)
otk/widget.cc
patch
|
blob
|
history
diff --git
a/otk/widget.cc
b/otk/widget.cc
index 25d5043d2ee81adb5cfd833c7015d42b5edaebdf..75c3a2abbdbe7137e1688566f6d1cac819876845 100644
(file)
--- 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