Re: [Spice-devel] [vdagent-linux] x11: invalidate requests for targets on grab from client

2019-02-22 Thread Victor Toso
Hi, On Thu, Feb 21, 2019 at 09:25:57PM +0100, Jakub Janků wrote: > 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 >

[Spice-devel] [vdagent-linux] x11: invalidate requests for targets on grab from client

2019-02-21 Thread Jakub Janků
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