3/8 opacity for iconic windows

This commit is contained in:
Dana Jansens 2007-05-28 03:02:00 +00:00
parent db4bc708d3
commit 451fb42cd0

View file

@ -431,10 +431,10 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
s = icon->data;
d = icon_data;
for (i = 0; i < icon->width * icon->height; ++i, ++d, ++s) {
/* 50% opacity */
/* 3/8 opacity */
gint a = ((*s >> RrDefaultAlphaOffset) & 0xff);
*d = *s - (a << RrDefaultAlphaOffset) +
((a>>1) << RrDefaultAlphaOffset);
(((a>>2) + (a>>3)) << RrDefaultAlphaOffset);
}
} else