Re: [Spice-devel] [spice-gtk v2 2/7] channel-main: clipboard request: wakeup only when needed

2018-12-12 Thread Victor Toso
Hi, On Tue, Dec 11, 2018 at 07:04:10PM +0100, Jakub Janku wrote: > Hi, > > On Mon, Dec 10, 2018 at 12:03 PM Victor Toso wrote: > > > > From: Victor Toso > > > > This patch makes agent_clipboard_request() to return true only when > > the message request to the agent is successfully queued to be

Re: [Spice-devel] [spice-gtk v2 2/7] channel-main: clipboard request: wakeup only when needed

2018-12-11 Thread Jakub Janku
Hi, On Mon, Dec 10, 2018 at 12:03 PM Victor Toso wrote: > > From: Victor Toso > > This patch makes agent_clipboard_request() to return true only when > the message request to the agent is successfully queued to be sent. > > By checking the return value, we can avoid wakeup the channel >

[Spice-devel] [spice-gtk v2 2/7] channel-main: clipboard request: wakeup only when needed

2018-12-10 Thread Victor Toso
From: Victor Toso This patch makes agent_clipboard_request() to return true only when the message request to the agent is successfully queued to be sent. By checking the return value, we can avoid wakeup the channel unnecessarily at spice_main_channel_clipboard_selection_request()