diff --git a/sway/tree/view.c b/sway/tree/view.c index 124b46219..868c9c858 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -56,6 +56,7 @@ void view_destroy(struct sway_view *view) { "(might have a pending transaction?)")) { return; } + wl_list_remove(&view->events.unmap.listener_list); if (!wl_list_empty(&view->saved_buffers)) { view_remove_saved_buffer(view); }