summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/cube.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-31 01:53:38 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-31 01:53:38 +0000
commit42b9d7dbe97c0c9df13c6f5abafd3e2bc838b138 (patch)
tree8db04d5e37b88a5cf21e3f89e396000128ca04bf /beryl-plugins/src/cube.c
parent90da5f15477052046e9dd1f7e835abcb1b37eb5e (diff)
downloadmarex-dev-42b9d7dbe97c0c9df13c6f5abafd3e2bc838b138.tar.gz
marex-dev-42b9d7dbe97c0c9df13c6f5abafd3e2bc838b138.tar.bz2
Fix unfold and 3d issues by not glTranslating when LEFT_VIEWPORt != RIGHT_VIEWPORT and IPCS CUBE_UNFOLDED == True
git-svn-id: file:///beryl/trunk@3466 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/cube.c')
-rw-r--r--beryl-plugins/src/cube.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/beryl-plugins/src/cube.c b/beryl-plugins/src/cube.c
index 371b481..f54a37e 100644
--- a/beryl-plugins/src/cube.c
+++ b/beryl-plugins/src/cube.c
@@ -257,6 +257,7 @@ typedef struct _CubeScreen
Bool fullscreenOutput;
int manualAtom;
+ int unfoldedAtom;
float outputXScale;
float outputYScale;
float outputXOffset;
@@ -2605,11 +2606,14 @@ cubeUnfold(CompDisplay * d,
xid = getIntOptionNamed(option, nOption, "root", 0);
+
s = findScreenAtDisplay(d, xid);
if (s)
{
CUBE_SCREEN(s);
+ IPCS_SetBool(IPCS_OBJECT(s),cs->unfoldedAtom, TRUE);
+
int hsize = s->hsize;
if (cs->mmMode != Multiple)
@@ -2653,6 +2657,8 @@ cubeFold(CompDisplay * d,
for (s = d->screens; s; s = s->next)
{
CUBE_SCREEN(s);
+
+ IPCS_SetBool(IPCS_OBJECT(s),cs->unfoldedAtom, FALSE);
if (xid && s->root != xid)
continue;
@@ -2963,6 +2969,7 @@ static Bool cubeInitScreen(CompPlugin * p, CompScreen * s)
TRUE);
cs->zoomLevelAtom =
IPCS_GetAtom(IPCS_OBJECT(s), IPCS_FLOAT, "ZOOM_LEVEL", TRUE);
+ cs->unfoldedAtom = IPCS_GetAtom(IPCS_OBJECT(s),IPCS_BOOL,"CUBE_UNFOLDED", TRUE);
cs->paintingCaps = FALSE;
IPCS_SetVPtr(IPCS_OBJECT(s), cs->paintingCapsAtom,
(void *)&cs->paintingCaps);