Skip to content

VMWare clipboard does not get updated (potentially due to race condition) #163

@ahmadconradi

Description

@ahmadconradi

When on the Arch host I do:

echo "your clipboard content from xclip here" | xclip -selection clipboard

VMWare does not update the clipboard of the Win geust, but when I do:

echo "your clipboard content from xsel here" | xsel --clipboard

it works as expected.

As pointed out by Seth on the archlinux forum, this might be due to:

Clients attempting to acquire a selection must set the time value of the SetSelectionOwner request to the timestamp of the event triggering the acquisition attempt, not to CurrentTime

But xclip is using CurrentTime regardless:

xclip/xclip.c

Line 475 in 2c3b811

/* FIXME: Should not use CurrentTime, according to ICCCM section 2.1 */

xsel code:
https://github.com/kfish/xsel/blob/7a134d6467e3711e3db1268dcee7001faedec187/xsel.c#L1020
https://github.com/kfish/xsel/blob/7a134d6467e3711e3db1268dcee7001faedec187/xsel.c#L547

Related Issue #90

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions