summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lange <klange@ogunderground.com>2008-02-04 16:34:54 -0500
committerKevin Lange <klange@ogunderground.com>2008-02-04 16:34:54 -0500
commit75dd4b7d4b2a942f3d53a012dcf2c4147f4cd790 (patch)
treebbdd5baec440a9ac1037b0248880c7ba34131bfa
parent48de2bea8d7251ec9395ee82104736a8ea219246 (diff)
downloadwiitrack-75dd4b7d4b2a942f3d53a012dcf2c4147f4cd790.tar.gz
wiitrack-75dd4b7d4b2a942f3d53a012dcf2c4147f4cd790.tar.bz2
And let's go one step further and only set the mask for windows that aren't at 0.0
-rw-r--r--wiitrack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wiitrack.c b/wiitrack.c
index 6c982c0..de0af18 100644
--- a/wiitrack.c
+++ b/wiitrack.c
@@ -236,10 +236,11 @@ static Bool WTPaintWindow(CompWindow *w, const WindowPaintAttrib *attrib,
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)
+ mask |= PAINT_WINDOW_TRANSFORMED_MASK;
} else {
matrixTranslate(&wTransform, 0.0, 0.0, 0.0);
}
- mask |= PAINT_WINDOW_TRANSFORMED_MASK;
}
damageScreen(w->screen);