diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 9db3f27d..2205b339 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -5641,8 +5641,10 @@ sna_do_copy(DrawablePtr src, DrawablePtr dst, GCPtr gc, if (gc->subWindowMode == IncludeInferiors) { DBG(("%s: window -- include inferiors\n", __FUNCTION__)); - assert(!w->winSize.data); - box_intersect(®ion.extents, &w->winSize.extents); + if (w->winSize.data) + RegionIntersect(®ion, ®ion, &w->winSize); + else + box_intersect(®ion.extents, &w->winSize.extents); clip = &w->borderClip; } else { DBG(("%s: window -- clip by children\n", __FUNCTION__));