From c8feaae7d2222de2b2967d0076e7a61edb7a0473 Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Wed, 10 Jun 2020 14:40:04 -0600 Subject: [PATCH] libweston: don't clean up surface role Surface roles are permanent, so it should not be cleaned up. Fixes: #409 weston: ../libweston/compositor.c:4094: weston_surface_set_role: Assertion `role_name' failed. Signed-off-by: James Hilliard --- libweston/touch-calibration.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libweston/touch-calibration.c b/libweston/touch-calibration.c index 3c76036d..9dd99bba 100644 --- a/libweston/touch-calibration.c +++ b/libweston/touch-calibration.c @@ -360,8 +360,6 @@ destroy_touch_calibrator(struct wl_resource *resource) if (calibrator->surface) { unmap_calibrator(calibrator); - weston_surface_set_role(calibrator->surface, NULL, - calibrator->surface->resource, 0); wl_list_remove(&calibrator->surface_destroy_listener.link); wl_list_remove(&calibrator->surface_commit_listener.link); }