aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-20 18:05:24 +0100
committeremersion <contact@emersion.fr>2017-11-20 18:05:24 +0100
commit6a06c3d9073507168df370f9f58642ce2eae1825 (patch)
tree51b1e257d8b53288990adffebf96f37567ed8024 /rootston/desktop.c
parentc3e0fbdb8f0cb16d99e70d14bb5cef6bd48d4591 (diff)
Fix segfault when closing xwayland views
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index cf5a8cdc..65730807 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -181,15 +181,12 @@ bool view_center(struct roots_view *view) {
void view_destroy(struct roots_view *view) {
wl_signal_emit(&view->events.destroy, view);
- wl_list_remove(&view->link);
free(view);
}
void view_init(struct roots_view *view, struct roots_desktop *desktop) {
view->desktop = desktop;
wl_signal_init(&view->events.destroy);
-
- wl_list_insert(&desktop->views, &view->link);
}
void view_setup(struct roots_view *view) {