set the alpha based on iconicness
This commit is contained in:
parent
66d51f2635
commit
f38be06788
1 changed files with 5 additions and 2 deletions
|
@ -422,8 +422,11 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
|
|||
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;
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue