mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-01 06:48:01 +02:00
compositor: Just damage compositor->damage in weston_output_damage()
This commit is contained in:
parent
1e8321213d
commit
944236a712
1 changed files with 2 additions and 7 deletions
|
|
@ -865,14 +865,9 @@ WL_EXPORT void
|
|||
weston_output_damage(struct weston_output *output)
|
||||
{
|
||||
struct weston_compositor *compositor = output->compositor;
|
||||
struct weston_surface *es;
|
||||
|
||||
if (wl_list_empty(&compositor->surface_list))
|
||||
return;
|
||||
|
||||
es = container_of(compositor->surface_list.next,
|
||||
struct weston_surface, link);
|
||||
pixman_region32_union(&es->damage, &es->damage, &output->region);
|
||||
pixman_region32_union(&compositor->damage,
|
||||
&compositor->damage, &output->region);
|
||||
weston_compositor_schedule_repaint(compositor);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue