3/8 opacity for iconic windows
This commit is contained in:
parent
db4bc708d3
commit
451fb42cd0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue