[PATCH weston] compositor: init the layer_link after removing it

Giulio Camuffo giuliocamuffo at gmail.com
Thu Apr 4 14:08:22 PDT 2013


---
 src/compositor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compositor.c b/src/compositor.c
index 3645b04..88f083c 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -977,6 +977,7 @@ weston_surface_unmap(struct weston_surface *surface)
 	weston_surface_damage_below(surface);
 	surface->output = NULL;
 	wl_list_remove(&surface->layer_link);
+	wl_list_init(&surface->layer_link);
 
 	wl_list_for_each(seat, &surface->compositor->seat_list, link) {
 		if (seat->seat.keyboard &&
-- 
1.8.2



More information about the wayland-devel mailing list