Skip to content

Commit

Permalink
Set clip region on the target picture
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
yshui committed Nov 10, 2018
1 parent b18d46b commit 683cda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compton.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 683cda0

Please sign in to comment.