summaryrefslogtreecommitdiff
path: root/src/frame.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-16 21:57:21 +0000
committerDana Jansens <danakj@orodu.net>2003-02-16 21:57:21 +0000
commit136c9c078d33e5784881267be03d8ff1adf41bc5 (patch)
tree5b9449a318ff53af4ea9fbed8850eb638451288a /src/frame.cc
parent0c2f0e0b5e974bace6b7488541fac0fed23c5bc9 (diff)
support for pixmap icons, kwm_win_icon and the icon in wmhints
Diffstat (limited to 'src/frame.cc')
-rw-r--r--src/frame.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/frame.cc b/src/frame.cc
index d1c206e7..23742be8 100644
--- a/src/frame.cc
+++ b/src/frame.cc
@@ -557,6 +557,11 @@ void Frame::renderIcon()
const Icon *icon = _client->icon(otk::Size(geom.button_size,
geom.button_size));
control->drawImage(*s, icon->w, icon->h, icon->data);
+ if (!icon->data) {
+ Pixmap p = _client->pixmapIcon(), m = _client->pixmapIconMask();
+ if (p != None)
+ control->drawImage(*s, p, m);
+ }
XSetWindowBackgroundPixmap(**otk::display, _icon, s->pixmap());
XClearWindow(**otk::display, _icon);