compositor: Just damage compositor->damage in weston_output_damage()
This commit is contained in:
parent
1e8321213d
commit
944236a712
@ -865,14 +865,9 @@ WL_EXPORT void
|
|||||||
weston_output_damage(struct weston_output *output)
|
weston_output_damage(struct weston_output *output)
|
||||||
{
|
{
|
||||||
struct weston_compositor *compositor = output->compositor;
|
struct weston_compositor *compositor = output->compositor;
|
||||||
struct weston_surface *es;
|
|
||||||
|
|
||||||
if (wl_list_empty(&compositor->surface_list))
|
pixman_region32_union(&compositor->damage,
|
||||||
return;
|
&compositor->damage, &output->region);
|
||||||
|
|
||||||
es = container_of(compositor->surface_list.next,
|
|
||||||
struct weston_surface, link);
|
|
||||||
pixman_region32_union(&es->damage, &es->damage, &output->region);
|
|
||||||
weston_compositor_schedule_repaint(compositor);
|
weston_compositor_schedule_repaint(compositor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user