aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-09 20:08:43 +0100
committeremersion <contact@emersion.fr>2017-11-09 20:08:43 +0100
commit0204f811b44a0a999666bc7601c9b38f7c5c1adb (patch)
tree3d98f0d3d82e81b73b2b0095add5f46cf559b83b /rootston
parent26dadacb7199d28af672cca3f91713e173a41258 (diff)
Remove xwayland view listeners on destroy
Diffstat (limited to 'rootston')
-rw-r--r--rootston/xwayland.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootston/xwayland.c b/rootston/xwayland.c
index 1da61ec3..b608b143 100644
--- a/rootston/xwayland.c
+++ b/rootston/xwayland.c
@@ -97,6 +97,10 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
wl_container_of(listener, roots_surface, destroy);
view_teardown(roots_surface->view);
wl_list_remove(&roots_surface->destroy.link);
+ wl_list_remove(&roots_surface->request_configure.link);
+ wl_list_remove(&roots_surface->request_move.link);
+ wl_list_remove(&roots_surface->request_resize.link);
+ wl_list_remove(&roots_surface->request_maximize.link);
wl_list_remove(&roots_surface->map_notify.link);
wl_list_remove(&roots_surface->unmap_notify.link);
view_destroy(roots_surface->view);