X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fframerender.c;h=a19b4ec0d4956693826745278bfa651e74b54490;hb=f81f352f4ea128c2aec195c6414a936bcfac786b;hp=093260fbd3cdb252551b287d8136026dd20c63a8;hpb=16f46c296d1fcd3f27fc62a18e71c55fb3fd3e88;p=chaz%2Fopenbox diff --git a/openbox/framerender.c b/openbox/framerender.c index 093260fb..a19b4ec0 100644 --- a/openbox/framerender.c +++ b/openbox/framerender.c @@ -235,12 +235,14 @@ static void framerender_label(ObFrame *self, RrAppearance *a) static void framerender_icon(ObFrame *self, RrAppearance *a) { + const ObClientIcon *icon; + if (self->icon_x < 0) return; - if (self->client->nicons) { - ObClientIcon *icon = client_icon(self->client, - ob_rr_theme->button_size + 2, - ob_rr_theme->button_size + 2); + icon = client_icon(self->client, + ob_rr_theme->button_size + 2, + ob_rr_theme->button_size + 2); + if (icon) { a->texture[0].type = RR_TEXTURE_RGBA; a->texture[0].data.rgba.width = icon->width; a->texture[0].data.rgba.height = icon->height;