new backend: handle --use-damage
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
cbe22a1cc8
commit
5940a959dc
|
@ -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(®_damage);
|
||||
pixman_region32_copy(®_damage, &ps->screen_reg);
|
||||
|
|
Loading…
Reference in New Issue