dnd: ensure internal dnd handlers are unlinked on xwm_destroy()

Fixes #3925
This commit is contained in:
Consolatis 2024-11-22 18:29:37 +01:00 committed by Simon Ser
parent c6dd5e3c2e
commit be3d2b74cf
3 changed files with 18 additions and 0 deletions

View file

@ -1968,6 +1968,8 @@ void xwm_destroy(struct wlr_xwm *xwm) {
xwm_selection_finish(&xwm->primary_selection);
xwm_selection_finish(&xwm->dnd_selection);
xwm_seat_unlink_drag_handlers(xwm);
if (xwm->seat) {
if (xwm->seat->selection_source &&
data_source_is_xwayland(xwm->seat->selection_source)) {
@ -2262,6 +2264,8 @@ struct wlr_xwm *xwm_create(struct wlr_xwayland *xwayland, int wm_fd) {
wl_list_init(&xwm->surfaces_in_stack_order);
wl_list_init(&xwm->unpaired_surfaces);
wl_list_init(&xwm->pending_startup_ids);
wl_list_init(&xwm->seat_drag_source_destroy.link);
xwm->ping_timeout = 10000;
xwm->xcb_conn = xcb_connect_to_fd(wm_fd, NULL);