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:
parent
d7cefccaee
commit
41649a1f9a
|
@ -844,8 +844,7 @@ void xwm_selection_finish(struct wlr_xwm *xwm) {
|
||||||
wlr_seat_set_primary_selection(xwm->seat, NULL,
|
wlr_seat_set_primary_selection(xwm->seat, NULL,
|
||||||
wl_display_next_serial(xwm->xwayland->wl_display));
|
wl_display_next_serial(xwm->xwayland->wl_display));
|
||||||
}
|
}
|
||||||
wl_list_remove(&xwm->seat_selection.link);
|
wlr_xwayland_set_seat(xwm->xwayland, NULL);
|
||||||
wl_list_remove(&xwm->seat_primary_selection.link);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue