summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-06-10 15:29:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-06-10 19:12:58 +0100
commit3f19270d6795738b58d9ce1721896b3067b38c9f (patch)
tree764b9ec0dda457d1e27a100c35808e6d7beebdd8
parent9e9c628708ae838e5df3df89331243f84b297e8e (diff)
sna/dri: Actually restrict pageflipping to properly aligned fs windows
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_dri.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c
index ad282026..3faa1999 100644
--- a/src/sna/sna_dri.c
+++ b/src/sna/sna_dri.c
@@ -707,7 +707,12 @@ can_flip(struct sna * sna,
return FALSE;
}
- if (draw->width != front_pixmap->drawable.width ||
+ if (draw->x != 0 || draw->y != 0 ||
+#ifdef COMPOSITE
+ draw->x != front_pixmap->screen_x ||
+ draw->y != front_pixmap->screen_y ||
+#endif
+ draw->width != front_pixmap->drawable.width ||
draw->height != front_pixmap->drawable.height) {
DBG(("%s: no, window is not full size (%dx%d)!=(%dx%d)\n",
__FUNCTION__,