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
This commit is contained in:
Dominique Martinet 2017-12-29 20:30:49 +01:00
parent d7cefccaee
commit 41649a1f9a
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
}