summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/group/paint.c
diff options
context:
space:
mode:
Diffstat (limited to 'beryl-plugins/src/group/paint.c')
-rw-r--r--beryl-plugins/src/group/paint.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/beryl-plugins/src/group/paint.c b/beryl-plugins/src/group/paint.c
index 5e2aac4..87423b3 100644
--- a/beryl-plugins/src/group/paint.c
+++ b/beryl-plugins/src/group/paint.c
@@ -936,8 +936,10 @@ groupDrawWindow(CompWindow * w,
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
//glBlendFunc(GL_SRC_ALPHA, GL_ONE); - maybe add an option for that...
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- glColor4us(gw->group->color[0], gw->group->color[1],
- gw->group->color[2], attrib->opacity);
+ glColor4us(gw->group->color[0] * attrib->brightness / 0xffff,
+ gw->group->color[1] * attrib->brightness / 0xffff,
+ gw->group->color[2] * attrib->brightness / 0xffff,
+ attrib->opacity);
/* we use PAINT_WINDOW_TRANSFORMED_MASK here to force
the usage of a good texture filter */