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 <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2018-11-10 11:55:52 +00:00
parent b18d46bcbd
commit 683cda0b91
1 changed files with 1 additions and 1 deletions

View File

@ -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;