From 944236a71234d8ecd86c43b6204a4972f003eb68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 28 Feb 2012 23:07:47 -0500 Subject: [PATCH] compositor: Just damage compositor->damage in weston_output_damage() --- src/compositor.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 7e4e7a60..679894b7 100644 --- a/src/compositor.c +++ b/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); }