jpeeler / rpms / wlroots

Forked from rpms/wlroots 5 years ago
Clone

Blame data-device-no_cancel_on_destroy.patch

946341d
From 4423f88fac1d82756bab451f451b159fa6d0e9f5 Mon Sep 17 00:00:00 2001
946341d
From: emersion <contact@emersion.fr>
946341d
Date: Mon, 26 Nov 2018 12:32:39 +0100
946341d
Subject: [PATCH] data-device: never cancel the source when offer is destroyed
946341d
946341d
The source could be used in another offer.
946341d
---
946341d
 types/data_device/wlr_data_offer.c | 3 ---
946341d
 1 file changed, 3 deletions(-)
946341d
946341d
diff --git a/types/data_device/wlr_data_offer.c b/types/data_device/wlr_data_offer.c
946341d
index 6135ffe33..b8cec091b 100644
946341d
--- a/types/data_device/wlr_data_offer.c
946341d
+++ b/types/data_device/wlr_data_offer.c
946341d
@@ -120,9 +120,6 @@ static void data_offer_handle_destroy(struct wl_client *client,
946341d
 	if (wl_resource_get_version(offer->resource) <
946341d
 			WL_DATA_OFFER_ACTION_SINCE_VERSION) {
946341d
 		data_offer_dnd_finish(offer);
946341d
-	} else if (offer->source->impl->dnd_finish) {
946341d
-		// wlr_data_source_cancel can free the source
946341d
-		wlr_data_source_cancel(offer->source);
946341d
 	}
946341d
 
946341d
 out: