compositor: Just damage compositor->damage in weston_output_damage()
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 29 Feb 2012 04:07:47 +0000 (23:07 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 1 Mar 2012 17:47:23 +0000 (12:47 -0500)
src/compositor.c

index 7e4e7a6..679894b 100644 (file)
@@ -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);
 }