Wayland: Implement clipboard copy

This commit is contained in:
Emmanuel Gil Peyrot
2018-10-10 20:31:26 +02:00
committed by linkmauve
parent 8b54e28c4e
commit c08abffc50
3 changed files with 125 additions and 3 deletions

View File

@@ -236,6 +236,7 @@ typedef struct _GLFWlibraryWayland
struct wl_data_device_manager* dataDeviceManager;
struct wl_data_device* dataDevice;
struct wl_data_offer* dataOffer;
struct wl_data_source* dataSource;
struct xdg_wm_base* wmBase;
struct zxdg_decoration_manager_v1* decorationManager;
struct wp_viewporter* viewporter;
@@ -258,6 +259,8 @@ typedef struct _GLFWlibraryWayland
int keyboardLastScancode;
char* clipboardString;
size_t clipboardSize;
char* clipboardSendString;
size_t clipboardSendSize;
int timerfd;
short int keycodes[256];
short int scancodes[GLFW_KEY_LAST + 1];