summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/cube.c
diff options
context:
space:
mode:
authorquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-27 20:51:52 +0000
committerquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-27 20:51:52 +0000
commit0039513d015de76f1b9252f666d0b120e4a305cd (patch)
treefdaa5fc05a1a7e7c497e371138e56f8a3f1bf0ed /beryl-plugins/src/cube.c
parentfe23938bb2c64cc8204c763ddf876ba3fa0cae62 (diff)
downloadmarex-dev-0039513d015de76f1b9252f666d0b120e4a305cd.tar.gz
marex-dev-0039513d015de76f1b9252f666d0b120e4a305cd.tar.bz2
cube plugin:
* fix during transparent cube not to draw the panels on anything but facing side, solves the issue of drawing them in non-rotating transcube git-svn-id: file:///beryl/trunk@3263 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/cube.c')
-rw-r--r--beryl-plugins/src/cube.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/beryl-plugins/src/cube.c b/beryl-plugins/src/cube.c
index 53d1e1c..9e292cc 100644
--- a/beryl-plugins/src/cube.c
+++ b/beryl-plugins/src/cube.c
@@ -1812,6 +1812,9 @@ cubeMoveViewportAndPaint(CompScreen * s,
{
CUBE_SCREEN(s);
+ Bool save;
+ save=cs->finalPaint;
+
if (cs->nOutput > 1)
{
int cubeOutput, dView;
@@ -1838,6 +1841,8 @@ cubeMoveViewportAndPaint(CompScreen * s,
output = cs->output[cubeOutput];
}
+ if (dView != 0)
+ cs->finalPaint=!(cs->opt[CUBE_SCREEN_OPTION_STUCK_TO_SCREEN].value.b);
if (dView != 0 && !screenGrabExist(s, "rotate", 0) &&
cs->desktopOpacity != OPAQUE)
cs->noManaged = TRUE;
@@ -1849,6 +1854,8 @@ cubeMoveViewportAndPaint(CompScreen * s,
}
else
{
+ if (dx != 0)
+ cs->finalPaint=!(cs->opt[CUBE_SCREEN_OPTION_STUCK_TO_SCREEN].value.b);
if (dx != 0 && !screenGrabExist(s, "rotate", 0) &&
cs->desktopOpacity != OPAQUE)
cs->noManaged = TRUE;
@@ -1856,6 +1863,7 @@ cubeMoveViewportAndPaint(CompScreen * s,
(*s->paintTransformedScreen) (s, sAttrib, &s->region, output, mask);
moveScreenViewport(s, -dx, 0, FALSE);
}
+ cs->finalPaint=save;
cs->noManaged = FALSE;
}