From 683cda0b91c2b46c03e940e66a00afd343058317 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 10 Nov 2018 11:55:52 +0000 Subject: [PATCH] Set clip region on the target picture Setting it on the target buffer picture has no effect. Fix performance problem when using xrender with virtual box. Fixes #40 Signed-off-by: Yuxuan Shui --- src/compton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compton.c b/src/compton.c index 1542a66..13cf52e 100644 --- a/src/compton.c +++ b/src/compton.c @@ -1871,7 +1871,7 @@ paint_all(session_t *ps, region_t *region, const region_t *region_real, win * co } if (BKEND_XRENDER == ps->o.backend) { - x_set_picture_clip_region(ps, ps->tgt_buffer.pict, 0, 0, region_real); + x_set_picture_clip_region(ps, ps->tgt_picture, 0, 0, region_real); } region_t reg_tmp, *reg_paint;