From 02421ef269fa3fd9e42a5316405e399d09a50ea7 Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 13 Jan 2021 14:42:11 -0500 Subject: [PATCH] [client] clipboard/wayland: fix null mimetype receive error This prevents looking-glass-client from failing with an error message like: error marshalling arguments for receive (signature sh): null value passed for arg 0 Error marshalling request: Invalid argument --- client/clipboards/Wayland/src/wayland.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/clipboards/Wayland/src/wayland.c b/client/clipboards/Wayland/src/wayland.c index 3d408408..876ee529 100644 --- a/client/clipboards/Wayland/src/wayland.c +++ b/client/clipboards/Wayland/src/wayland.c @@ -200,6 +200,7 @@ static const struct wl_data_offer_listener dataOfferListener = { static void dataDeviceHandleDataOffer(void * data, struct wl_data_device * dataDevice, struct wl_data_offer * offer) { + this->stashedType = LG_CLIPBOARD_DATA_NONE; wl_data_offer_add_listener(offer, &dataOfferListener, NULL); }