summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-04-03 16:38:19 +0200
committerDanny Baumann <dannybaumann@web.de>2007-04-03 16:38:19 +0200
commit68e9f75a6b7491fa795e7ee29561814fc40f476f (patch)
treed98ed095e6f70c259bee1d33153d401ebeddd9d1
parent3faff911d83637c189d77538422532dccdd0e106 (diff)
downloadberyl-premerge-68e9f75a6b7491fa795e7ee29561814fc40f476f.tar.gz
beryl-premerge-68e9f75a6b7491fa795e7ee29561814fc40f476f.tar.bz2
trailfocus: don't make the paint modifiers larger than their defaults
-rw-r--r--src/trailfocus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trailfocus.c b/src/trailfocus.c
index 41dc471..49b1260 100644
--- a/src/trailfocus.c
+++ b/src/trailfocus.c
@@ -287,9 +287,9 @@ static Bool trailfocusPaintWindow(CompWindow *w, const WindowPaintAttrib *attrib
{
WindowPaintAttrib wAttrib = *attrib;
- wAttrib.opacity = tw->attribs.opacity;
- wAttrib.brightness = tw->attribs.brightness;
- wAttrib.saturation = tw->attribs.brightness;
+ wAttrib.opacity = MIN(attrib->opacity, tw->attribs.opacity);
+ wAttrib.brightness = MIN(attrib->brightness, tw->attribs.brightness);
+ wAttrib.saturation = MIN(attrib->saturation, tw->attribs.brightness);
UNWRAP(ts, w->screen, paintWindow);
status = (*w->screen->paintWindow) (w, &wAttrib, transform, region, mask);