summaryrefslogtreecommitdiffstats
path: root/sway/xdg_decoration.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/xdg_decoration.c')
-rw-r--r--sway/xdg_decoration.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/xdg_decoration.c b/sway/xdg_decoration.c
index 39e0df56..9ac87191 100644
--- a/sway/xdg_decoration.c
+++ b/sway/xdg_decoration.c
@@ -10,7 +10,9 @@ static void xdg_decoration_handle_destroy(struct wl_listener *listener,
10 void *data) { 10 void *data) {
11 struct sway_xdg_decoration *deco = 11 struct sway_xdg_decoration *deco =
12 wl_container_of(listener, deco, destroy); 12 wl_container_of(listener, deco, destroy);
13 deco->view->xdg_decoration = NULL; 13 if(deco->view) {
14 deco->view->xdg_decoration = NULL;
15 }
14 wl_list_remove(&deco->destroy.link); 16 wl_list_remove(&deco->destroy.link);
15 wl_list_remove(&deco->request_mode.link); 17 wl_list_remove(&deco->request_mode.link);
16 wl_list_remove(&deco->link); 18 wl_list_remove(&deco->link);