aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-11-26 12:32:39 +0100
committeremersion <contact@emersion.fr>2018-11-26 12:35:49 +0100
commit4423f88fac1d82756bab451f451b159fa6d0e9f5 (patch)
treed966491a36ff1214363b48099fb721238dee7477
parent5d26da9d15d4874c383bbc9948a802fcd605dc8b (diff)
data-device: never cancel the source when offer is destroyed
The source could be used in another offer.
-rw-r--r--types/data_device/wlr_data_offer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/types/data_device/wlr_data_offer.c b/types/data_device/wlr_data_offer.c
index 6135ffe3..b8cec091 100644
--- a/types/data_device/wlr_data_offer.c
+++ b/types/data_device/wlr_data_offer.c
@@ -120,9 +120,6 @@ static void data_offer_handle_destroy(struct wl_client *client,
if (wl_resource_get_version(offer->resource) <
WL_DATA_OFFER_ACTION_SINCE_VERSION) {
data_offer_dnd_finish(offer);
- } else if (offer->source->impl->dnd_finish) {
- // wlr_data_source_cancel can free the source
- wlr_data_source_cancel(offer->source);
}
out: