e->data.normal.icon_width = icon->width;
e->data.normal.icon_height = icon->height;
e->data.normal.icon_data = icon->data;
- /* 7/16 opacity if iconic */
- e->data.normal.icon_alpha = c->iconic ? 0x70 : 0xff;
+ e->data.normal.icon_alpha =
+ c->iconic ? OB_ICONIC_ALPHA : 0xff;
}
}
}
e->data.normal.icon_width = icon->width;
e->data.normal.icon_height = icon->height;
e->data.normal.icon_data = icon->data;
- /* 7/16 opacity if iconic */
- e->data.normal.icon_alpha = c->iconic ? 0x70 : 0xff;
+ e->data.normal.icon_alpha = c->iconic ? OB_ICONIC_ALPHA : 0xff;
}
}
}
icon = client_icon(target->client, innerw, innerh);
p->a_icon->texture[0].data.rgba.width = icon->width;
p->a_icon->texture[0].data.rgba.height = icon->height;
- /* 7/16 alpha for iconic windows */
p->a_icon->texture[0].data.rgba.alpha =
- target->client->iconic ? 0x70 : 0xff;
+ target->client->iconic ? OB_ICONIC_ALPHA : 0xff;
p->a_icon->texture[0].data.rgba.data = icon->data;
/* draw the icon */
#ifndef __ob__misc_h
#define __ob__misc_h
+/*! The alpha value to use for icons of iconified windows in various places
+ like the focus cycle popup and client list menus.
+ Give iconic windows 7/16 alpha. A little under 50%.
+ */
+#define OB_ICONIC_ALPHA 0x70
+
typedef enum
{
OB_CURSOR_NONE,