From: Kristian Høgsberg Date: Wed, 11 Aug 2010 12:56:47 +0000 (-0400) Subject: Schedule repaint from surface destructor X-Git-Tag: 0.85.0~889 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=117d5130b1c4a70d4d057cfd56ad84530665d9bd;p=platform%2Fupstream%2Fweston.git Schedule repaint from surface destructor Not just the surface_destroy protocol entry points. --- diff --git a/compositor.c b/compositor.c index e31cb75..454d81e 100644 --- a/compositor.c +++ b/compositor.c @@ -186,6 +186,8 @@ destroy_surface(struct wl_resource *resource, struct wl_client *client) l->func(l, surface); free(surface); + + wlsc_compositor_schedule_repaint(compositor); } static void @@ -419,11 +421,7 @@ static void surface_destroy(struct wl_client *client, struct wl_surface *surface) { - struct wlsc_surface *es = (struct wlsc_surface *) surface; - wl_resource_destroy(&surface->base, client); - - wlsc_compositor_schedule_repaint(es->compositor); } static void