From f24e17259e49aef55b7ada54793a4cdb49ae94a1 Mon Sep 17 00:00:00 2001 From: John Chen Date: Sat, 2 Feb 2019 16:03:09 +0800 Subject: [PATCH] Fix swaywm/sway#3545. --- types/data_device/wlr_drag.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/data_device/wlr_drag.c b/types/data_device/wlr_drag.c index 9bd63d96..2b676fdc 100644 --- a/types/data_device/wlr_drag.c +++ b/types/data_device/wlr_drag.c @@ -490,6 +490,9 @@ bool seat_client_start_drag(struct wlr_seat_client *client, seat->drag = drag; // TODO: unset this thing somewhere seat->drag_serial = serial; + if (seat->drag_source != NULL) { + wl_list_remove(&seat->drag_source_destroy.link); + } seat->drag_source = source; if (source != NULL) { seat->drag_source_destroy.notify = seat_handle_drag_source_destroy;