]> Dogcows Code - chaz/openbox/commitdiff
set the alpha based on iconicness
authorDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 03:30:43 +0000 (03:30 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 03:30:43 +0000 (03:30 +0000)
openbox/focus_cycle_popup.c

index ee03370004d8aa04d2e5a2bcc7a38e9816761eb9..7d132b6ab55298f822104d59da82d131955f12e3 100644 (file)
@@ -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;
-            /* 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 */
This page took 0.029365 seconds and 4 git commands to generate.