summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/rotate.c
diff options
context:
space:
mode:
authorixcedev <ixcedev@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-19 23:41:13 +0000
committerixcedev <ixcedev@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-19 23:41:13 +0000
commit8e66580c87b6ac58625fbb31a0579b1583cfe640 (patch)
tree1fc2b7909092519aaf9c9f7f67eb86c3496d5a9e /beryl-plugins/src/rotate.c
parent882f84e24df761bb541326ec8390967e862dc094 (diff)
downloadmarex-dev-8e66580c87b6ac58625fbb31a0579b1583cfe640.tar.gz
marex-dev-8e66580c87b6ac58625fbb31a0579b1583cfe640.tar.bz2
beryl-plugins: zoom/rotate : switch to the new flag requests system for 3d plugin (roico)
git-svn-id: file:///beryl/trunk@1296 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/rotate.c')
-rw-r--r--beryl-plugins/src/rotate.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/beryl-plugins/src/rotate.c b/beryl-plugins/src/rotate.c
index 237f621..1ecfe7c 100644
--- a/beryl-plugins/src/rotate.c
+++ b/beryl-plugins/src/rotate.c
@@ -256,8 +256,6 @@ typedef struct _RotateScreen
int wheelMaxDist;
int previousRotationAtom;
- int ipcsActiveAtom;
-
} RotateScreen;
#define GET_ROTATE_DISPLAY(d) \
@@ -734,12 +732,7 @@ rotatePreparePaintScreen (CompScreen * s, int msSinceLastPaint)
previousRotation + tx);
}
- int atomValue = IPCS_GetInt(IPCS_OBJECT (s),
- rs->ipcsActiveAtom);
-
- IPCS_SetInt (IPCS_OBJECT (s),
- rs->ipcsActiveAtom,
- --atomValue);
+ compDisplayClearRequestFlagForPlugin (s->display, "rotate", "ENABLE_3D");
moveScreenViewport (s, tx, 0, TRUE);
@@ -1056,12 +1049,7 @@ rotateInitiate (CompDisplay * d,
rs->moveTo = 0.0f;
rs->moveToY = 0.0f;
- int atomValue = IPCS_GetInt(IPCS_OBJECT (s),
- rs->ipcsActiveAtom);
-
- IPCS_SetInt (IPCS_OBJECT (s),
- rs->ipcsActiveAtom,
- ++atomValue);
+ compDisplaySetRequestFlagForPlugin (s->display, "rotate", "ENABLE_3D");
rs->rotating = FALSE;
@@ -2823,9 +2811,6 @@ rotateInitScreen (CompPlugin * p, CompScreen * s)
rs->previousRotationAtom = IPCS_GetAtom (IPCS_OBJECT (s), IPCS_FLOAT,
"previous_rotation", TRUE);
-
- rs->ipcsActiveAtom = IPCS_GetAtom (IPCS_OBJECT (s), IPCS_INT,
- "3D_WINDOWS_ARE_ACTIVE", TRUE);
rotateScreenInitOptions (rs);