• Jakub Janků's avatar
    x11: invalidate requests for targets on grab from client · 3aff7839
    Jakub Janků authored
    If XSetSelectionOwner() is invoked during the time
    we are waiting for the requested clipboard targets,
    the targets we eventually receive are no longer valid.
    
    To solve this, ignore the same count of target notifications
    as we expected at the time we received grab from the client.
    
    Otherwise we end up in a situation when vdagent holds
    the clipboard grab in the guest but cannot provide data to the
    apps that request it - this can be observed in the log:
    
        clipboard: received selection request event for target *, while not owning client clipboard
    Signed-off-by: Jakub Janků's avatarJakub Janků <jjanku@redhat.com>
    Acked-by: Victor Toso's avatarVictor Toso <victortoso@redhat.com>
    3aff7839
Name
Last commit
Last update
..
audio.c Loading commit data...
audio.h Loading commit data...
clipboard.c Loading commit data...
clipboard.h Loading commit data...
device-info.c Loading commit data...
device-info.h Loading commit data...
file-xfers.c Loading commit data...
file-xfers.h Loading commit data...
vdagent.c Loading commit data...
x11-priv.h Loading commit data...
x11-randr.c Loading commit data...
x11.c Loading commit data...
x11.h Loading commit data...