From 5e58d46cc1a90810e3ee76203cee8ca2f14fb462 Mon Sep 17 00:00:00 2001 From: emersion Date: Mon, 12 Feb 2018 09:12:31 +0100 Subject: Add wlr_signal_emit_safe --- rootston/desktop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rootston') diff --git a/rootston/desktop.c b/rootston/desktop.c index 91661c05..e9d66d5c 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "rootston/server.h" #include "rootston/seat.h" #include "rootston/xcursor.h" @@ -383,7 +384,7 @@ struct roots_subsurface *subsurface_create(struct roots_view *view, void view_finish(struct roots_view *view) { view_damage_whole(view); - wl_signal_emit(&view->events.destroy, view); + wlr_signal_emit_safe(&view->events.destroy, view); wl_list_remove(&view->new_subsurface.link); -- cgit v1.2.3