summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/blurfx.c
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-23 20:20:18 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-23 20:20:18 +0000
commit8dac7206d5816d8d1a519b0cf5a127bafc576e71 (patch)
tree3a46e9364c6fe5ebb39154085ff730f64609409a /beryl-plugins/src/blurfx.c
parent31918ea329a3d3e54570c3280d33b88487e584da (diff)
downloadmarex-dev-8dac7206d5816d8d1a519b0cf5a127bafc576e71.tar.gz
marex-dev-8dac7206d5816d8d1a519b0cf5a127bafc576e71.tar.bz2
beryl-plugins: blurfx: added option to disable blur cache on transformed screen. closes #886 , #987
git-svn-id: file:///beryl/trunk@1403 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/blurfx.c')
-rw-r--r--beryl-plugins/src/blurfx.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/beryl-plugins/src/blurfx.c b/beryl-plugins/src/blurfx.c
index af83f68..8fdf031 100644
--- a/beryl-plugins/src/blurfx.c
+++ b/beryl-plugins/src/blurfx.c
@@ -478,6 +478,7 @@ blurfxSetScreenOption (CompScreen * s, char *name, CompOptionValue * value)
case BLURFX_SCREEN_OPTION_REFLECTION_PROPORTIONAL:
case BLURFX_SCREEN_OPTION_MOTION_BLUR_ON_TRANSFORMED_SCREEN:
case BLURFX_SCREEN_OPTION_DISABLE_DECORATION_ALPHADEP:
+ case BLURFX_SCREEN_OPTION_NO_BLUR_CACHE_ON_TRANSFORMED_SCREEN:
if (compSetBoolOption (o, value))
{
damageScreen (s);
@@ -785,6 +786,14 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_BLUR_CACHE_TEXTURES_DEFAULT;
+ o = &bs->opt[BLURFX_SCREEN_OPTION_NO_BLUR_CACHE_ON_TRANSFORMED_SCREEN];
+ o->name = "no_cache_when_transformed";
+ o->shortDesc = N_("Disable blur cache on transformed screen");
+ o->longDesc = N_("Disables blur cache on transformed screen");
+ o->type = CompOptionTypeBool;
+ o->value.b = BLURFX_SCREEN_OPTION_NO_BLUR_CACHE_ON_TRANSFORMED_SCREEN_DEFAULT;
+
+
o = &bs->opt[BLURFX_SCREEN_OPTION_DISABLE_DECORATION_ALPHADEP];
o->name = "disable_deco_alpha_dep";
o->shortDesc = N_("Disable decoration alpha dependency");
@@ -1986,6 +1995,13 @@ updateBlurTexture (CompWindow * w, CompScreen * s,
return;
}
+ if (bs->opt[BLURFX_SCREEN_OPTION_NO_BLUR_CACHE_ON_TRANSFORMED_SCREEN].value.b
+ && mask & PAINT_WINDOW_ON_TRANSFORMED_SCREEN_MASK)
+ {
+ bw->texUpdated = FALSE;
+ return;
+ }
+
// Do we have an decoration vertex array thet does not contain shadows?
if (mask & PAINT_WINDOW_DECORATION_MASK && bw->decoArray.vCount)
{