Wayland: Add support for file drop events

This adds support for file path drop events in text/uri-list format.

It is based on work by Pilzschaf in #2040.

Closes #2040

(cherry picked from commit 4cb36872a5)
This commit is contained in:
Camilla Löwy
2022-03-31 19:56:48 +02:00
parent 2b504e41d5
commit 05422e2824
5 changed files with 62 additions and 4 deletions
+2
View File
@@ -537,6 +537,8 @@ void _glfwPlatformTerminate(void)
xdg_wm_base_destroy(_glfw.wl.wmBase);
if (_glfw.wl.selectionOffer)
wl_data_offer_destroy(_glfw.wl.selectionOffer);
if (_glfw.wl.dragOffer)
wl_data_offer_destroy(_glfw.wl.dragOffer);
if (_glfw.wl.selectionSource)
wl_data_source_destroy(_glfw.wl.selectionSource);
if (_glfw.wl.dataDevice)