1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

new backend: handle --use-damage

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-03-16 12:12:54 +00:00
parent cbe22a1cc8
commit 5940a959dc
No known key found for this signature in database
GPG key ID: 37C999F617EA1A47

View file

@ -54,7 +54,7 @@ void paint_all_new(session_t *ps, win *const t, bool ignore_damage) {
// part of the image we want to reuse
region_t reg_damage;
if (!ignore_damage) {
reg_damage = get_damage(ps, ps->o.monitor_repaint);
reg_damage = get_damage(ps, ps->o.monitor_repaint || !ps->o.use_damage);
} else {
pixman_region32_init(&reg_damage);
pixman_region32_copy(&reg_damage, &ps->screen_reg);