From 484012a90cd8b4899122d438ecfffe3abb8fd55d Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Fri, 26 Feb 2021 22:18:39 -0500 Subject: [PATCH] [client] wayland: bind no-op drag-and-drop handlers Otherwise, libwayland aborts when a drag into the Looking Glass window occurs. --- client/displayservers/Wayland/clipboard.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/client/displayservers/Wayland/clipboard.c b/client/displayservers/Wayland/clipboard.c index f19e896b..e6b648fa 100644 --- a/client/displayservers/Wayland/clipboard.c +++ b/client/displayservers/Wayland/clipboard.c @@ -318,9 +318,30 @@ static void dataDeviceHandleSelection(void * opaque, wlCb.currentRead = data; } +static void dataDeviceHandleEnter(void * data, struct wl_data_device * device, + uint32_t serial, struct wl_surface * surface, wl_fixed_t sxW, wl_fixed_t syW, + struct wl_data_offer * offer) +{ + // Do nothing. +} + +static void dataDeviceHandleMotion(void * data, struct wl_data_device * device, + uint32_t time, wl_fixed_t sxW, wl_fixed_t syW) +{ + // Do nothing. +} + +static void dataDeviceHandleLeave(void * data, struct wl_data_device * device) +{ + // Do nothing. +} + static const struct wl_data_device_listener dataDeviceListener = { .data_offer = dataDeviceHandleDataOffer, .selection = dataDeviceHandleSelection, + .enter = dataDeviceHandleEnter, + .motion = dataDeviceHandleMotion, + .leave = dataDeviceHandleLeave, }; bool waylandCBInit(void)