Re: [Spice-devel] [PATCH vdagent v4 3/4] refetch _NET_WM_NAME in vdagent_x11_has_icons_on_desktop()

2017-12-05 Thread Jakub Janků
On Tue, 2017-12-05 at 19:45 +0100, Jakub Janků wrote: > Don't cache _NET_WM_NAME, instead refetch it with each > vdagent_x11_has_icons_on_desktop() call so that correct result is > returned > even if the window manager changes during the lifetime of vdagent_x11 > struct. > Remove char *net_wm_name

[Spice-devel] [PATCH vdagent v4 4/4] x11: update wms_with_icons_on_desktop[] to support Mate

2017-12-05 Thread Jakub Janků
Since version 1.9.2, Marco sets _NET_WM_NAME to "Metacity (Marco)" instead of "Marco", see: http://git.mate-desktop.org/marco/commit/?id=cbf24f5d78719b930fc0cd6c0c80e00e9d62c95a Add this new value to wms_with_icons_on_desktop[], so that vdagent_x11_has_icons_on_desktop() returns TRUE. --- src/vd

[Spice-devel] [PATCH vdagent v4 3/4] refetch _NET_WM_NAME in vdagent_x11_has_icons_on_desktop()

2017-12-05 Thread Jakub Janků
Don't cache _NET_WM_NAME, instead refetch it with each vdagent_x11_has_icons_on_desktop() call so that correct result is returned even if the window manager changes during the lifetime of vdagent_x11 struct. Remove char *net_wm_name from vdagent_x11. Remove x11 argument from vdagent_x11_has_icons_

[Spice-devel] [PATCH vdagent v4 1/4] vdagent: add GTK+

2017-12-05 Thread Jakub Janků
This is a preparatory patch for GTK+ vdagent redesign. Since most of the vdagent code still uses X11 lib, force GDK to use X11 backend by calling gdk_set_allowed_backends("x11"). --- Makefile.am | 2 ++ configure.ac | 1 + src/vdagent/vdagent.c | 5 + 3 files changed, 8 ins

[Spice-devel] [PATCH vdagent v4 2/4] retrieve _NET_WM_NAME using GDK

2017-12-05 Thread Jakub Janků
Get _NET_WM_NAME using gdk_x11_screen_get_window_manager_name(). vdagent_x11_get_wm_name(): return the name instead of setting it. Return string specifics: - "unsupported", when not running on X11 - "unknown", when the name cannot be retrieved Since the return value is never NULL, remove obsolete c

[Spice-devel] [NSIS] packaging: bump version to 4.3

2017-12-05 Thread Yedidyah Bar David
Change-Id: I1bfcf05a48d3af8226061f47d76ba64e9a16c61a Signed-off-by: Yedidyah Bar David --- ovirt-guest-tools-iso.spec.in | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ovirt-guest-tools-iso.spec.in b/ovirt-guest-tools-iso.spec.in index 04fee49..19ed5c9 100644 --- a/ovirt-

Re: [Spice-devel] [spice-server v2] sound: do not change volume or mute state on migration

2017-12-05 Thread Frediano Ziglio
> > Hi, > > On Tue, Dec 05, 2017 at 03:58:56AM -0500, Frediano Ziglio wrote: > > > > > > From: Victor Toso > > > > > > On migration, Qemu notify spice-server with the current Guest volume > > > and mute state values which currently is handled forwarding these > > > values to the client. > > >

Re: [Spice-devel] [PATCH spice-server 7/9] reds: Fix wrong assert

2017-12-05 Thread Uri Lublin
On 12/05/2017 10:41 AM, Frediano Ziglio wrote: RedVDIReadBuf::data is a static allocated buffer so checking for NULL on it is useless. It would be NULL only if RedVDIReadBuf pointer would be the opposite, in value, of the offset of data field into it. Signed-off-by: Frediano Ziglio Acked-by:

Re: [Spice-devel] [spice-server v2] sound: do not change volume or mute state on migration

2017-12-05 Thread Victor Toso
Hi, On Tue, Dec 05, 2017 at 03:58:56AM -0500, Frediano Ziglio wrote: > > > > From: Victor Toso > > > > On migration, Qemu notify spice-server with the current Guest volume > > and mute state values which currently is handled forwarding these > > values to the client. > > > > This patch is a co

Re: [Spice-devel] [PATCH spice-server 0/9] Miscellaneous patches

2017-12-05 Thread Victor Toso
Hi, On Tue, Dec 05, 2017 at 08:41:03AM +, Frediano Ziglio wrote: > Not strictly related. > Some are just style ones. > > Frediano Ziglio (9): > reds: Use GLib memory functions for RedVDIReadBuf > reds: Remove leak of agent_dev > reds: Remove RedVDIReadBuf pooling code So, ack all patch

Re: [Spice-devel] [spice-server v2 8/9] Handle SPICE_MSGC_DISCONNECTING message in RedChannelClient

2017-12-05 Thread Victor Toso
Hi, On Tue, Dec 05, 2017 at 09:54:17AM +0100, Victor Toso wrote: > From: Frediano Ziglio > > There's no reason to handle this message in a different > way in MainChannel and InputsChannel, the default handling > will return true in any case. > > Signed-off-by: Frediano Ziglio > --- > > Rebase

Re: [Spice-devel] [PATCH spice-server 6/9] main-channel: Put all migration message handling together

2017-12-05 Thread Victor Toso
On Tue, Dec 05, 2017 at 08:41:09AM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/main-channel.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Acked-by: Victor Toso > > diff --git a/server/main-channel.c b/server/main-channel.c > index 34f54768..

Re: [Spice-devel] [PATCH spice-server 3/9] reds: Remove RedVDIReadBuf pooling code

2017-12-05 Thread Victor Toso
Hi, On Tue, Dec 05, 2017 at 08:41:06AM +, Frediano Ziglio wrote: > Originally this pool was used to avoid allocation/deallocations. > However the introduction of GList cause the code to do dynamic > allocations in order to update the list making this pooling > something useless. > The buffers

Re: [Spice-devel] [PATCH spice-server 5/9] main-channel: Remove brackets if not needed

2017-12-05 Thread Victor Toso
On Tue, Dec 05, 2017 at 08:41:08AM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio Acked-by: Victor Toso > --- > server/main-channel.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/server/main-channel.c b/server/main-channel.c > index f5c079f3..

Re: [Spice-devel] [PATCH spice-server 4/9] main-channel: Remove useless check

2017-12-05 Thread Victor Toso
On Tue, Dec 05, 2017 at 08:41:07AM +, Frediano Ziglio wrote: > If there is a channel client there's surely a related channel. > > Signed-off-by: Frediano Ziglio Acked-by: Victor Toso > --- > server/main-channel.c | 4 > 1 file changed, 4 deletions(-) > > diff --git a/server/main-cha

Re: [Spice-devel] [PATCH spice-server 1/9] reds: Use GLib memory functions for RedVDIReadBuf

2017-12-05 Thread Victor Toso
Hi, On Tue, Dec 05, 2017 at 04:28:52AM -0500, Frediano Ziglio wrote: > > > > On Tue, Dec 05, 2017 at 04:14:10AM -0500, Frediano Ziglio wrote: > > > > > > > > Hi, > > > > > > > > On Tue, Dec 05, 2017 at 08:41:04AM +, Frediano Ziglio wrote: > > > > > Signed-off-by: Frediano Ziglio > > > > >

Re: [Spice-devel] ps lasso tool is obscure

2017-12-05 Thread Christophe Fergeau
On Fri, Dec 01, 2017 at 05:15:41AM -0500, Frediano Ziglio wrote: > Can we have a bit more details? > Which OS and version is running the VM? Which resolution and color depth? > Which OS and version (Windows x64 SP1 is not a version) is running the > client? Which resolution and color depth? > D

Re: [Spice-devel] [PATCH spice-server 2/7] VideoStream: store channel in stream

2017-12-05 Thread Uri Lublin
On 12/04/2017 06:07 PM, Frediano Ziglio wrote: On 11/29/2017 10:16 PM, Jonathon Jongsma wrote: This allows us to unref the stream directly rather than needing to pass the associated DisplayChannel to stream_unref(). The same is also true for stream_agent_unref, since the only reason that stream

Re: [Spice-devel] [PATCH spice-server 1/9] reds: Use GLib memory functions for RedVDIReadBuf

2017-12-05 Thread Frediano Ziglio
> > On Tue, Dec 05, 2017 at 04:14:10AM -0500, Frediano Ziglio wrote: > > > > > > Hi, > > > > > > On Tue, Dec 05, 2017 at 08:41:04AM +, Frediano Ziglio wrote: > > > > Signed-off-by: Frediano Ziglio > > > > > > > --- > > > > server/reds.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 de

Re: [Spice-devel] [PATCH spice-server 1/9] reds: Use GLib memory functions for RedVDIReadBuf

2017-12-05 Thread Victor Toso
On Tue, Dec 05, 2017 at 04:14:10AM -0500, Frediano Ziglio wrote: > > > > Hi, > > > > On Tue, Dec 05, 2017 at 08:41:04AM +, Frediano Ziglio wrote: > > > Signed-off-by: Frediano Ziglio > > > > > --- > > > server/reds.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > >

Re: [Spice-devel] [PATCH spice-server 1/9] reds: Use GLib memory functions for RedVDIReadBuf

2017-12-05 Thread Frediano Ziglio
> > Hi, > > On Tue, Dec 05, 2017 at 08:41:04AM +, Frediano Ziglio wrote: > > Signed-off-by: Frediano Ziglio > > > --- > > server/reds.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/server/reds.c b/server/reds.c > > index 64b3a967..4e652253 100644 > > ---

Re: [Spice-devel] [PATCH spice-server 2/9] reds: Remove leak of agent_dev

2017-12-05 Thread Victor Toso
Hi, On Tue, Dec 05, 2017 at 08:41:05AM +, Frediano Ziglio wrote: > This object was not freed. AND, you are fixing the leak in the object itself, no? One patch should be fine but adding that in commit log should do no harm. Still, Acked-by: Victor Toso > Signed-off-by: Frediano Ziglio > --

Re: [Spice-devel] [PATCH spice-server 1/9] reds: Use GLib memory functions for RedVDIReadBuf

2017-12-05 Thread Victor Toso
Hi, On Tue, Dec 05, 2017 at 08:41:04AM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/reds.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/server/reds.c b/server/reds.c > index 64b3a967..4e652253 100644 > --- a/server/reds.c > +++ b/ser

Re: [Spice-devel] [spice-server v2] sound: do not change volume or mute state on migration

2017-12-05 Thread Frediano Ziglio
> > From: Victor Toso > > On migration, Qemu notify spice-server with the current Guest volume > and mute state values which currently is handled forwarding these > values to the client. > > This patch is a complement of f10de4bc084fcc - Here, volume was > jumping regardless of guest's volume v

[Spice-devel] [spice-server v2 8/9] Handle SPICE_MSGC_DISCONNECTING message in RedChannelClient

2017-12-05 Thread Victor Toso
From: Frediano Ziglio There's no reason to handle this message in a different way in MainChannel and InputsChannel, the default handling will return true in any case. Signed-off-by: Frediano Ziglio --- Rebased to apply cleanly. server/inputs-channel.c | 2 -- server/main-channel.c | 2 --

[Spice-devel] [PATCH spice-server 6/9] main-channel: Put all migration message handling together

2017-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/main-channel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/main-channel.c b/server/main-channel.c index 34f54768..68386b61 100644 --- a/server/main-channel.c +++ b/server/main-channel.c @@ -207,6 +207,9 @@ static bool

[Spice-devel] [PATCH spice-server 8/9] Handle SPICE_MSGC_DISCONNECTING message in RedChannelClient

2017-12-05 Thread Frediano Ziglio
There's no reason to handle this message in a different way in MainChannel and InputsChannel, the default handling will return true in any case. Signed-off-by: Frediano Ziglio --- server/inputs-channel.c | 2 -- server/main-channel.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/server

[Spice-devel] [PATCH spice-server 9/9] test-vdagent: Remove useless MIN definition

2017-12-05 Thread Frediano Ziglio
Already defined by GLib headers. Signed-off-by: Frediano Ziglio --- server/tests/test-vdagent.c | 5 - 1 file changed, 5 deletions(-) diff --git a/server/tests/test-vdagent.c b/server/tests/test-vdagent.c index 01308d0d..c734ddec 100644 --- a/server/tests/test-vdagent.c +++ b/server/tests/t

[Spice-devel] [PATCH spice-server 7/9] reds: Fix wrong assert

2017-12-05 Thread Frediano Ziglio
RedVDIReadBuf::data is a static allocated buffer so checking for NULL on it is useless. It would be NULL only if RedVDIReadBuf pointer would be the opposite, in value, of the offset of data field into it. Signed-off-by: Frediano Ziglio --- Maybe this check should just be removed? --- server/reds

[Spice-devel] [PATCH spice-server 5/9] main-channel: Remove brackets if not needed

2017-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/main-channel.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/main-channel.c b/server/main-channel.c index f5c079f3..34f54768 100644 --- a/server/main-channel.c +++ b/server/main-channel.c @@ -177,10 +177,9 @@ static bool

[Spice-devel] [PATCH spice-server 1/9] reds: Use GLib memory functions for RedVDIReadBuf

2017-12-05 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/reds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/reds.c b/server/reds.c index 64b3a967..4e652253 100644 --- a/server/reds.c +++ b/server/reds.c @@ -4519,7 +4519,7 @@ red_char_device_vdi_port_init(RedCharDeviceVDIPort *self

[Spice-devel] [PATCH spice-server 2/9] reds: Remove leak of agent_dev

2017-12-05 Thread Frediano Ziglio
This object was not freed. Signed-off-by: Frediano Ziglio --- server/reds.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/reds.c b/server/reds.c index 4e652253..40c82ccc 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3754,6 +3754,7 @@ SPICE_GNUC_VISIBLE v

[Spice-devel] [PATCH spice-server 0/9] Miscellaneous patches

2017-12-05 Thread Frediano Ziglio
Not strictly related. Some are just style ones. Frediano Ziglio (9): reds: Use GLib memory functions for RedVDIReadBuf reds: Remove leak of agent_dev reds: Remove RedVDIReadBuf pooling code main-channel: Remove useless check main-channel: Remove brackets if not needed main-channel: Put

[Spice-devel] [PATCH spice-server 3/9] reds: Remove RedVDIReadBuf pooling code

2017-12-05 Thread Frediano Ziglio
Originally this pool was used to avoid allocation/deallocations. However the introduction of GList cause the code to do dynamic allocations in order to update the list making this pooling something useless. The buffers limitation is now implemented with a simple counter. Signed-off-by: Frediano Zi

[Spice-devel] [PATCH spice-server 4/9] main-channel: Remove useless check

2017-12-05 Thread Frediano Ziglio
If there is a channel client there's surely a related channel. Signed-off-by: Frediano Ziglio --- server/main-channel.c | 4 1 file changed, 4 deletions(-) diff --git a/server/main-channel.c b/server/main-channel.c index 43ab39ae..f5c079f3 100644 --- a/server/main-channel.c +++ b/server/ma