summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/cube.c
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-17 14:46:02 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-17 14:46:02 +0000
commit22d5228f4cf6a2e8d818500d50ccca1aceca8862 (patch)
treeeb5193d1d27d7d43e013dcce5d06e4f869a717c3 /beryl-plugins/src/cube.c
parent5f37e20ff9c11fd46a820fa3ded7fe446c7af034 (diff)
downloadmarex-dev-22d5228f4cf6a2e8d818500d50ccca1aceca8862.tar.gz
marex-dev-22d5228f4cf6a2e8d818500d50ccca1aceca8862.tar.bz2
beryl-plugin: cube: paint not managed windows only on current desktop in transparent mode. closes #204
git-svn-id: file:///beryl/trunk@2772 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/cube.c')
-rw-r--r--beryl-plugins/src/cube.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/beryl-plugins/src/cube.c b/beryl-plugins/src/cube.c
index 75d2c33..a703abb 100644
--- a/beryl-plugins/src/cube.c
+++ b/beryl-plugins/src/cube.c
@@ -1798,6 +1798,9 @@ cubeMoveViewportAndPaint(CompScreen * s,
output = cs->output[cubeOutput];
}
+ if (dView != 0 && !screenGrabExist(s, "rotate", 0) &&
+ cs->desktopOpacity != OPAQUE)
+ cs->noManaged = TRUE;
moveScreenViewport(s, -dView, 0, FALSE);
(*s->paintTransformedScreen) (s, sAttrib,
&s->outputDev[output].region,
@@ -1806,11 +1809,14 @@ cubeMoveViewportAndPaint(CompScreen * s,
}
else
{
+ if (dx != 0 && !screenGrabExist(s, "rotate", 0) &&
+ cs->desktopOpacity != OPAQUE)
+ cs->noManaged = TRUE;
moveScreenViewport(s, dx, 0, FALSE);
(*s->paintTransformedScreen) (s, sAttrib, &s->region, output, mask);
moveScreenViewport(s, -dx, 0, FALSE);
}
-
+ cs->noManaged = FALSE;
}
static void