All pastes #739780 Raw Edit

Zeug

public text v1 · immutable
·published 2007-10-17 13:56 UTC
rendered paste body
diff --git a/plugins/cube.c b/plugins/cube.c
index 3292248..ec2af44 100644
--- a/plugins/cube.c
+++ b/plugins/cube.c
@@ -1714,7 +1714,8 @@ cubePaintBackground (CompScreen   *s,
            return;
        }
 
-       n = (s->x * cs->nOutput + cs->srcOutput) % n;
+       n = s->x - (s->windowOffsetX / s->width);
+       n = (n * cs->nOutput + cs->srcOutput) % n;
 
        if (s->desktopWindowCount)
        {