commit b076b2d79ddd8717e952b4bf62dea652a38cec10
parent 3509094243c822fdbca518341b1f219d524d39b6
Author: Michael Forney <mforney@mforney.org>
Date: Tue, 25 Feb 2014 19:10:50 -0800
pointer: Handle cursor surface destruction correctly
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/libswc/pointer.c b/libswc/pointer.c
@@ -76,6 +76,7 @@ static void handle_cursor_surface_destroy(struct wl_listener * listener,
= CONTAINER_OF(listener, typeof(*pointer), cursor.destroy_listener);
view_attach(&pointer->cursor.view, NULL);
+ pointer->cursor.surface = NULL;
}
static bool update(struct view * view)