From 75a9e38e3a3f49a0d26e87d2fb5133e45e58b7cb Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 2 Jun 2021 05:00:10 -0400 Subject: [PATCH] [client] wayland: remove sync transfer for VM->host copies Since we are using epoll, there is no longer any need to remove O_NONBLOCK with fcntl, and the comment is also no longer relevant. --- client/displayservers/Wayland/clipboard.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/displayservers/Wayland/clipboard.c b/client/displayservers/Wayland/clipboard.c index 20dc2b2c..ad71b613 100644 --- a/client/displayservers/Wayland/clipboard.c +++ b/client/displayservers/Wayland/clipboard.c @@ -438,11 +438,6 @@ static void dataSourceHandleSend(void * data, struct wl_data_source * source, struct WCBTransfer * transfer = (struct WCBTransfer *) data; if (containsMimetype(transfer->mimetypes, mimetype)) { - // Consider making this do non-blocking sends to not stall the Wayland - // event loop if it becomes a problem. This is "fine" in the sense that - // wl-copy also stalls like this, but it's not necessary. - fcntl(fd, F_SETFL, 0); - struct ClipboardWrite * data = malloc(sizeof(struct ClipboardWrite)); if (!data) {