summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-28 03:02:00 +0000
committerDana Jansens <danakj@orodu.net>2007-05-28 03:02:00 +0000
commit451fb42cd01d7ef1ea935f323f01d3f2214694a1 (patch)
treeecafdfc20378638ad41e5693eb44f13bc34181b0
parentdb4bc708d3923016095bfc34e4cde871ea3c4800 (diff)
3/8 opacity for iconic windows
-rw-r--r--openbox/focus_cycle_popup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c
index 13f12da5..b1a99e29 100644
--- a/openbox/focus_cycle_popup.c
+++ b/openbox/focus_cycle_popup.c
@@ -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