all repos — openbox @ f38be067884c39cc1061c893cc5e7c5a4d99d9b5

openbox fork - make it a bit more like ryudo

set the alpha based on iconicness
Dana Jansens danakj@orodu.net
commit

f38be067884c39cc1061c893cc5e7c5a4d99d9b5

parent

66d51f2635a03460b9441c27e3d1206fb2879518

1 files changed, 5 insertions(+), 2 deletions(-)

jump to
M openbox/focus_cycle_popup.copenbox/focus_cycle_popup.c

@@ -422,8 +422,11 @@ /* get the icon from the client */

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 */ - p->a_icon->texture[0].data.rgba.alpha = (0xff>>1 - 0xff>>4); + if (target->client->iconic) + /* 7/16 alpha */ + p->a_icon->texture[0].data.rgba.alpha = (0xff>>1 - 0xff>>4); + else + p->a_icon->texture[0].data.rgba.alpha = 0xff; p->a_icon->texture[0].data.rgba.data = icon->data; /* draw the icon */