mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 06:38:09 +02:00
compositor: Make weston_surface_damage_below_noupdate() the default
We never want to update the transform and then damage below. Damage below is always used to trigger a repaint where the surface used to be so we need to record the damage before updating the transform.
This commit is contained in:
parent
3b5ea3bc6f
commit
323ee04505
1 changed files with 2 additions and 10 deletions
|
|
@ -251,7 +251,7 @@ surface_to_global_float(struct weston_surface *surface,
|
|||
}
|
||||
|
||||
static void
|
||||
weston_surface_damage_below_noupdate(struct weston_surface *surface)
|
||||
weston_surface_damage_below(struct weston_surface *surface)
|
||||
{
|
||||
struct weston_surface *below;
|
||||
|
||||
|
|
@ -355,7 +355,7 @@ weston_surface_update_transform(struct weston_surface *surface)
|
|||
|
||||
surface->geometry.dirty = 0;
|
||||
|
||||
weston_surface_damage_below_noupdate(surface);
|
||||
weston_surface_damage_below(surface);
|
||||
|
||||
pixman_region32_fini(&surface->transform.boundingbox);
|
||||
|
||||
|
|
@ -466,14 +466,6 @@ weston_surface_damage(struct weston_surface *surface)
|
|||
weston_compositor_schedule_repaint(surface->compositor);
|
||||
}
|
||||
|
||||
static void
|
||||
weston_surface_damage_below(struct weston_surface *surface)
|
||||
{
|
||||
weston_surface_update_transform(surface);
|
||||
weston_surface_damage_below_noupdate(surface);
|
||||
weston_compositor_schedule_repaint(surface->compositor);
|
||||
}
|
||||
|
||||
static void
|
||||
weston_surface_flush_damage(struct weston_surface *surface)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue