-/* -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*-
+/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
framerender.c for the Openbox window manager
Copyright (c) 2003 Ben Jansens
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;