]> Dogcows Code - chaz/openbox/commitdiff
trying to be as cool as mika /._.;\
authorDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 03:40:43 +0000 (03:40 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 03:40:43 +0000 (03:40 +0000)
openbox/focus_cycle_popup.c

index 8251deab3bc7580ff06ee21c8ca701cca6c27dbb..b76793b1ed6581f819d3940068cfd1b83a933e07 100644 (file)
@@ -421,11 +421,9 @@ 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;
+            /* 7/16 alpha for iconic windows */
+            p->a_icon->texture[0].data.rgba.alpha =
+                target->client->iconic ? 0x70 : 0xff;
             p->a_icon->texture[0].data.rgba.data = icon->data;
 
             /* draw the icon */
This page took 0.023932 seconds and 4 git commands to generate.