From 41649a1f9a37379f470dad34aa81bbb13d8b70c1 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Fri, 29 Dec 2017 20:30:49 +0100 Subject: [PATCH] xwm_selection_finish: set NULL seat for xwayland While they could eventually be split appart, the current approach could lead to double wl_list_remove() calls on selections which is incorrect --- xwayland/selection.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xwayland/selection.c b/xwayland/selection.c index 79819565..65599145 100644 --- a/xwayland/selection.c +++ b/xwayland/selection.c @@ -844,8 +844,7 @@ void xwm_selection_finish(struct wlr_xwm *xwm) { wlr_seat_set_primary_selection(xwm->seat, NULL, wl_display_next_serial(xwm->xwayland->wl_display)); } - wl_list_remove(&xwm->seat_selection.link); - wl_list_remove(&xwm->seat_primary_selection.link); + wlr_xwayland_set_seat(xwm->xwayland, NULL); } }