summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/blurfx.c
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-07 14:21:37 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-07 14:21:37 +0000
commitf5b5599da9a37555591fc42e1f208ebd2b751e15 (patch)
treecc4eff898958e6e96b10db5e7bd3e19ac9c4cd79 /beryl-plugins/src/blurfx.c
parentb4231ff395a2915d2d40803c765736fe700955ec (diff)
downloadmarex-dev-f5b5599da9a37555591fc42e1f208ebd2b751e15.tar.gz
marex-dev-f5b5599da9a37555591fc42e1f208ebd2b751e15.tar.bz2
use new simpler ipcs interface
git-svn-id: file:///beryl/trunk@536 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/blurfx.c')
-rw-r--r--beryl-plugins/src/blurfx.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/beryl-plugins/src/blurfx.c b/beryl-plugins/src/blurfx.c
index 8a0903f..2ef037e 100644
--- a/beryl-plugins/src/blurfx.c
+++ b/beryl-plugins/src/blurfx.c
@@ -1084,14 +1084,7 @@ blurfxPaintScreen (CompScreen * s, const ScreenPaintAttrib * sa,
bs->mode = MODE_NORMAL;
- Bool splash =
- (IPCS_IsSet
- (IPCS_OBJECT (s),
- IPCS_GetAtom (IPCS_OBJECT (s), IPCS_BOOL, "SPLASH_IS_ACTIVE",
- FALSE))
- && IPCS_GetBool (IPCS_OBJECT (s),
- IPCS_GetAtom (IPCS_OBJECT (s), IPCS_BOOL,
- "SPLASH_IS_ACTIVE", FALSE)));
+ Bool splash = IPCS_GetBoolND(IPCS_OBJECT (s),"SPLASH_IS_ACTIVE",FALSE);
blur_fbo &= !DISABLE_FEATURE (s, bs->ipcs_disable_blur);
blur_fbo &= !splash;
@@ -1477,14 +1470,8 @@ blurfxPaintWindow (CompWindow * w, const WindowPaintAttrib * attrib,
value.list.value[i].s);
}
- Bool splash =
- (IPCS_IsSet
- (IPCS_OBJECT (s),
- IPCS_GetAtom (IPCS_OBJECT (s), IPCS_BOOL, "SPLASH_IS_ACTIVE",
- FALSE))
- && IPCS_GetBool (IPCS_OBJECT (s),
- IPCS_GetAtom (IPCS_OBJECT (s), IPCS_BOOL,
- "SPLASH_IS_ACTIVE", FALSE)));
+ Bool splash = IPCS_GetBoolND(IPCS_OBJECT (s),"SPLASH_IS_ACTIVE",FALSE);
+
blur_enabled &= !DISABLE_FEATURE (s, bs->ipcs_disable_blur);
blur_enabled &= !DISABLE_FEATURE (w, bw->ipcs_disable_blur);
blur_enabled &= !splash;
@@ -1700,14 +1687,8 @@ blurfxDrawWindowTexture (CompWindow * w, CompTexture * texture,
value.list.value[i].s);
}
- Bool splash =
- (IPCS_IsSet
- (IPCS_OBJECT (s),
- IPCS_GetAtom (IPCS_OBJECT (s), IPCS_BOOL, "SPLASH_IS_ACTIVE",
- FALSE))
- && IPCS_GetBool (IPCS_OBJECT (s),
- IPCS_GetAtom (IPCS_OBJECT (s), IPCS_BOOL,
- "SPLASH_IS_ACTIVE", FALSE)));
+ Bool splash = IPCS_GetBoolND(IPCS_OBJECT (s),"SPLASH_IS_ACTIVE",FALSE);
+
blur_enabled &= !DISABLE_FEATURE (s, bs->ipcs_disable_blur);
blur_enabled &= !DISABLE_FEATURE (w, bw->ipcs_disable_blur);
blur_enabled &= !splash;