compositor: Just damage compositor->damage in weston_output_damage()

Kristian Høgsberg 13 years ago
parent 1e8321213d
commit 944236a712
  1. 9
      src/compositor.c

@ -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…
Cancel
Save