mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-29 16:05:59 +01:00
wlr_surface: clear/fini buffers when appropriate
This commit is contained in:
parent
f24b3df980
commit
fc1a851415
1 changed files with 2 additions and 0 deletions
|
@ -230,6 +230,7 @@ static void surface_commit(struct wl_client *client,
|
||||||
&buffer_damage, surface->current.width, surface->current.height);
|
&buffer_damage, surface->current.width, surface->current.height);
|
||||||
pixman_region32_union(&surface->current.buffer_damage,
|
pixman_region32_union(&surface->current.buffer_damage,
|
||||||
&surface->current.buffer_damage, &buffer_damage);
|
&surface->current.buffer_damage, &buffer_damage);
|
||||||
|
pixman_region32_fini(&buffer_damage);
|
||||||
|
|
||||||
pixman_region32_intersect_rect(&surface->current.buffer_damage,
|
pixman_region32_intersect_rect(&surface->current.buffer_damage,
|
||||||
&surface->current.buffer_damage, 0, 0,
|
&surface->current.buffer_damage, 0, 0,
|
||||||
|
@ -237,6 +238,7 @@ static void surface_commit(struct wl_client *client,
|
||||||
|
|
||||||
pixman_region32_clear(&surface->pending.surface_damage);
|
pixman_region32_clear(&surface->pending.surface_damage);
|
||||||
pixman_region32_clear(&surface->pending.buffer_damage);
|
pixman_region32_clear(&surface->pending.buffer_damage);
|
||||||
|
pixman_region32_clear(&surface->pending.opaque);
|
||||||
}
|
}
|
||||||
// TODO: Commit other changes
|
// TODO: Commit other changes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue