[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
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-01-14 10:41:08 +11:00
1 parent 50c934db5a
commit 02421ef269
1 file changed
+1
+1
View File
@@ -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);
}