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) {