X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus_cycle_popup.c;h=8e58c935ebf150960bb16d2e61fe9b8aaed15ffe;hb=5074d902aa215a2a656980d31b19574a5db1f795;hp=8251deab3bc7580ff06ee21c8ca701cca6c27dbb;hpb=1d267613a3c3423d00150a9ba778f229385cd03e;p=chaz%2Fopenbox diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c index 8251deab..8e58c935 100644 --- a/openbox/focus_cycle_popup.c +++ b/openbox/focus_cycle_popup.c @@ -421,11 +421,8 @@ 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*7/16; - else - p->a_icon->texture[0].data.rgba.alpha = 0xff; + p->a_icon->texture[0].data.rgba.alpha = + target->client->iconic ? OB_ICONIC_ALPHA : 0xff; p->a_icon->texture[0].data.rgba.data = icon->data; /* draw the icon */