X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fframe.cc;h=23742be8496dad705a7bc9bb5f8d7416d7ff3820;hb=361303715b6eb54d77ed8e1c9ad8f35e44e4ede1;hp=d1c206e75cb4d22e7a70973f569cf498851ca760;hpb=afe1d9e3a88610d5d3ae351dd2648aedfd2537b2;p=chaz%2Fopenbox 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);