diff options
-rw-r--r-- | src/sna/sna_accel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index aecae513..d654660b 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2433,6 +2433,9 @@ sna_drawable_move_region_to_cpu(DrawablePtr drawable, sna_damage_add(&priv->cpu_damage, region); discard_gpu = false; } + + if (dx | dy) + RegionTranslate(region, -dx, -dy); } else sna_pixmap_free_cpu(sna, priv, false); } |