mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[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.
This commit is contained in:
parent
c4468b1a0d
commit
75a9e38e3a
@ -438,11 +438,6 @@ static void dataSourceHandleSend(void * data, struct wl_data_source * source,
|
|||||||
struct WCBTransfer * transfer = (struct WCBTransfer *) data;
|
struct WCBTransfer * transfer = (struct WCBTransfer *) data;
|
||||||
if (containsMimetype(transfer->mimetypes, mimetype))
|
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));
|
struct ClipboardWrite * data = malloc(sizeof(struct ClipboardWrite));
|
||||||
if (!data)
|
if (!data)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user