Re: [Spice-devel] [vdagent-windows v1] vdagent-win: check for locked session

2016-05-09 Thread Victor Toso
Hi, On Mon, May 09, 2016 at 10:38:11AM +0200, Pavel Grunt wrote: > On Mon, 2016-05-09 at 10:31 +0200, Victor Toso wrote: > > Hi, > > > > On Fri, May 06, 2016 at 01:50:31PM +0200, Victor Toso wrote: > > > From WTSRegisterSessionNotification() we are aware of session changes > > > (WM_WTSSESSION_CH

Re: [Spice-devel] [vdagent-windows v1] vdagent-win: check for locked session

2016-05-09 Thread Victor Toso
Hi, On Sat, May 07, 2016 at 09:59:09AM -0400, Frediano Ziglio wrote: > A bit OT but on the same page. > > I used the drag&drop feature and it's quite useful. > It's not however perfectly integrated. Would be really good if user could for > instance > drop from the client to a specific explorer wi

Re: [Spice-devel] [vdagent-windows v1] vdagent-win: check for locked session

2016-05-09 Thread Pavel Grunt
On Mon, 2016-05-09 at 10:31 +0200, Victor Toso wrote: > Hi, > > On Fri, May 06, 2016 at 01:50:31PM +0200, Victor Toso wrote: > > From WTSRegisterSessionNotification() we are aware of session changes > > (WM_WTSSESSION_CHANGE) such as Lock/Unlock events. > > > > We can use that to disable features

Re: [Spice-devel] [vdagent-windows v1] vdagent-win: check for locked session

2016-05-09 Thread Victor Toso
Hi, On Fri, May 06, 2016 at 01:50:31PM +0200, Victor Toso wrote: > From WTSRegisterSessionNotification() we are aware of session changes > (WM_WTSSESSION_CHANGE) such as Lock/Unlock events. > > We can use that to disable features such as drag-and-drop. > Resolves: https://bugzilla.redhat.com/show_

Re: [Spice-devel] [vdagent-windows v1] vdagent-win: check for locked session

2016-05-08 Thread Frediano Ziglio
A bit OT but on the same page. I used the drag&drop feature and it's quite useful. It's not however perfectly integrated. Would be really good if user could for instance drop from the client to a specific explorer window in the guest. I understand that this would be integrate in the shell in a qu

Re: [Spice-devel] [vdagent-windows v1] vdagent-win: check for locked session

2016-05-06 Thread Victor Toso
Hi, On Fri, May 06, 2016 at 05:49:03PM +0200, Fabiano FidĂȘncio wrote: > On Fri, May 6, 2016 at 5:35 PM, Victor Toso wrote: > > Hi, > > > > On Fri, May 06, 2016 at 05:21:40PM +0200, Pavel Grunt wrote: > >> Hey, it looks good. But according to docs, it will not work on WinXP > >> > >> https://msdn.

Re: [Spice-devel] [vdagent-windows v1] vdagent-win: check for locked session

2016-05-06 Thread Fabiano FidĂȘncio
On Fri, May 6, 2016 at 5:35 PM, Victor Toso wrote: > Hi, > > On Fri, May 06, 2016 at 05:21:40PM +0200, Pavel Grunt wrote: >> Hey, it looks good. But according to docs, it will not work on WinXP >> >> https://msdn.microsoft.com/en-us/library/windows/desktop/aa383828%28v=vs.85%29.a >> spx >> Okay.

Re: [Spice-devel] [vdagent-windows v1] vdagent-win: check for locked session

2016-05-06 Thread Victor Toso
Hi, On Fri, May 06, 2016 at 05:21:40PM +0200, Pavel Grunt wrote: > Hey, it looks good. But according to docs, it will not work on WinXP > > https://msdn.microsoft.com/en-us/library/windows/desktop/aa383828%28v=vs.85%29.a > spx > > Pavel Interesting, I did not see that. Thanks! I would still keep

Re: [Spice-devel] [vdagent-windows v1] vdagent-win: check for locked session

2016-05-06 Thread Pavel Grunt
Hey, it looks good. But according to docs, it will not work on WinXP https://msdn.microsoft.com/en-us/library/windows/desktop/aa383828%28v=vs.85%29.a spx Pavel On Fri, 2016-05-06 at 13:50 +0200, Victor Toso wrote: > From WTSRegisterSessionNotification() we are aware of session changes > (WM_WTSS

[Spice-devel] [vdagent-windows v1] vdagent-win: check for locked session

2016-05-06 Thread Victor Toso
From WTSRegisterSessionNotification() we are aware of session changes (WM_WTSSESSION_CHANGE) such as Lock/Unlock events. We can use that to disable features such as drag-and-drop. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1323628 --- vdagent/vdagent.cpp | 20 +++- 1 fi