diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index fa386ff6..e5e26764 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -17685,9 +17685,10 @@ static void sna_accel_post_damage(struct sna *sna) #ifdef HAS_DIRTYTRACKING_DRAWABLE_SRC assert(dirty->src->type == DRAWABLE_PIXMAP); + src = get_drawable_pixmap(dirty->src); +#else + src = dirty->src; #endif - - src = (PixmapPtr)dirty->src; dst = dirty->slave_dst->master_pixmap; region.extents.x1 = dirty->x;