Wayland backend: Add support for copy to clipboard

This commit is contained in:
Kovid Goyal
2018-09-04 22:22:43 +05:30
parent b0a39b127d
commit f3a1ee7b9f
3 changed files with 106 additions and 4 deletions

5
glfw/wl_platform.h vendored
View File

@@ -193,6 +193,9 @@ typedef struct _GLFWlibraryWayland
struct zwp_relative_pointer_manager_v1* relativePointerManager;
struct zwp_pointer_constraints_v1* pointerConstraints;
struct zwp_idle_inhibit_manager_v1* idleInhibitManager;
struct wl_data_device_manager* dataDeviceManager;
struct wl_data_device* dataDevice;
struct wl_data_source* dataSourceForClipboard;
int compositorVersion;
int seatVersion;
@@ -232,7 +235,7 @@ typedef struct _GLFWlibraryWayland
} egl;
EventLoopData eventLoopData;
char *clipboardString;
} _GLFWlibraryWayland;
// Wayland-specific per-monitor data