From eb125116460fb671ff6da397639fd1347261948b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 14 Mar 2020 09:12:06 +0530 Subject: [PATCH] The uber-fussy sway does not like calling wl_data_offer_finish on a version 1 data manager --- glfw/wl_window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glfw/wl_window.c b/glfw/wl_window.c index 654db611b..10370e8ef 100644 --- a/glfw/wl_window.c +++ b/glfw/wl_window.c @@ -1766,7 +1766,9 @@ static void drop(void *data UNUSED, struct wl_data_device *wl_data_device UNUSED if (_glfw.wl.dataOffers[i].offer_type == DRAG_AND_DROP) { char *uri_list = read_data_offer(_glfw.wl.dataOffers[i].id, URI_LIST_MIME); if (uri_list) { - wl_data_offer_finish(_glfw.wl.dataOffers[i].id); + // We dont do finish as this requires version 3 for wl_data_device_manager + // which then requires more work with calling set_actions for drag and drop to function + // wl_data_offer_finish(_glfw.wl.dataOffers[i].id); int count; char** paths = parseUriList(uri_list, &count);