aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-02-12 09:12:31 +0100
committeremersion <contact@emersion.fr>2018-02-12 09:12:31 +0100
commit5e58d46cc1a90810e3ee76203cee8ca2f14fb462 (patch)
treea5019d87cdc121842ab7cf867fbcac0fde4ccff0 /rootston
parent3497e53516d96ad67b26115e2e06218f68e1114d (diff)
Add wlr_signal_emit_safe
Diffstat (limited to 'rootston')
-rw-r--r--rootston/desktop.c3
1 files changed, 2 insertions, 1 deletions
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 <wlr/types/wlr_xcursor_manager.h>
#include <wlr/types/wlr_xdg_shell_v6.h>
#include <wlr/util/log.h>
+#include <wlr/util/signal.h>
#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);