diff options
| author | Dominique Martinet <asmadeus@codewreck.org> | 2017-12-29 15:56:26 +0100 | 
|---|---|---|
| committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-12-29 15:56:26 +0100 | 
| commit | dad9543c510ac9075533a7de9e8b315bd17b3b9c (patch) | |
| tree | 737f43863540c93af33fd38011251360fc6ef2df /xwayland | |
| parent | c23bd2ab7a020fdbfbb3dd1ee0b3f5c8b5807253 (diff) | |
| download | wlroots-dad9543c510ac9075533a7de9e8b315bd17b3b9c.tar.xz | |
Xwayland: remove xwm from selection seat listeners on destroy
Diffstat (limited to 'xwayland')
| -rw-r--r-- | xwayland/xwm.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c index 849acff8..0b9ffac2 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -1114,6 +1114,10 @@ void xwm_destroy(struct wlr_xwm *xwm) {  	wl_list_for_each_safe(xsurface, tmp, &xwm->unpaired_surfaces, link) {  		wlr_xwayland_surface_destroy(xsurface);  	} +	if (xwm->seat) { +		wl_list_remove(&xwm->seat_selection.link); +		wl_list_remove(&xwm->seat_primary_selection.link); +	}  	wl_list_remove(&xwm->compositor_surface_create.link);  	xcb_disconnect(xwm->xcb_conn);  | 
