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
+5
View File
@@ -171,6 +171,7 @@ typedef struct _GLFWofferWayland
{
struct wl_data_offer* offer;
GLFWbool text_plain_utf8;
GLFWbool text_uri_list;
} _GLFWofferWayland;
// Wayland-specific per-window data
@@ -250,6 +251,10 @@ typedef struct _GLFWlibraryWayland
struct wl_data_offer* selectionOffer;
struct wl_data_source* selectionSource;
struct wl_data_offer* dragOffer;
_GLFWwindow* dragFocus;
uint32_t dragSerial;
int compositorVersion;
int seatVersion;