summaryrefslogtreecommitdiff
path: root/wiitrack.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiitrack.c')
-rw-r--r--wiitrack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiitrack.c b/wiitrack.c
index de0af18..58ae195 100644
--- a/wiitrack.c
+++ b/wiitrack.c
@@ -235,8 +235,8 @@ static Bool WTPaintWindow(CompWindow *w, const WindowPaintAttrib *attrib,
if (shouldPaintStacked(w)) {
if (!(w->type == CompWindowTypeDesktopMask)) {
if (!(WIN_REAL_X(w) + WIN_REAL_W(w) <= 0.0 || WIN_REAL_X(w) >= w->screen->width))
- matrixTranslate(&wTransform, 0.0, 0.0, wtw->zDepth);
- if (wtw->zDepth != 0.0)
+ matrixTranslate(&wTransform, 0.0, 0.0, wtw->zDepth + (float)wiitrackGetStackPadding(w->screen) / 100.0f);
+ if (wtw->zDepth + (float)wiitrackGetStackPadding(w->screen) / 100.0f != 0.0)
mask |= PAINT_WINDOW_TRANSFORMED_MASK;
} else {
matrixTranslate(&wTransform, 0.0, 0.0, 0.0);