Re: [Spice-devel] [PATCH spice-server v2] Use verify instead of G_STATIC_ASSERT

2017-12-01 Thread Jonathon Jongsma
Seems I got behind on email and ACKed the previous version already. Oops. Acked-by: Jonathon Jongsma On Thu, 2017-11-30 at 16:42 +, Frediano Ziglio wrote: > verify guarantee that the condition is always a compile > time constant. > > Signed-off-by: Frediano Ziglio > --- > server/glib-co

Re: [Spice-devel] [PATCH spice-server] inputs-channel: Prefer channel core over global core interface

2017-12-01 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Thu, 2017-11-30 at 12:07 +, Frediano Ziglio wrote: > Potentially a channel can run with a different core interface > than the global one attached to RedsState so instead of calling > reds_core_* functions use the code interface attached to the > channel. > > S

Re: [Spice-devel] [PATCH spice-server 2/2] inputs-channel: Avoid some allocation using RedsState pointer

2017-12-01 Thread Jonathon Jongsma
I don't like this. It feels like it's being too clever and actually makes things more confusing. The small benefit we get from not allocating a small struct or two is definitely outweighed by the disadvantages in my mind. Jonathon On Thu, 2017-11-30 at 12:03 +, Frediano Ziglio wrote: > Signe

Re: [Spice-devel] [PATCH spice-server 1/2] inputs-channel: Encapsulate SpiceTabletState

2017-12-01 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Thu, 2017-11-30 at 12:03 +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/inputs-channel.c | 16 +++- > 1 file changed, 11 insertions(+), 5 deletions(-) > > diff --git a/server/inputs-channel.c b/server/inputs-channel.c >

Re: [Spice-devel] [PATCH spice-server] Use verify instead of G_STATIC_ASSERT

2017-12-01 Thread Jonathon Jongsma
sure, why not? Acked-by: Jonathon Jongsma On Thu, 2017-11-30 at 12:00 +, Frediano Ziglio wrote: > verify guarantee that the condition is always a compile > time constant. > > Signed-off-by: Frediano Ziglio > --- > server/glib-compat.h| 2 +- > server/red-parse-qxl.c | 4 +

Re: [Spice-devel] [PATCH spice-server] tests: Use GLib memory functions

2017-12-01 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Thu, 2017-11-30 at 11:15 +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio > --- > server/tests/test-display-base.c | 42 > > server/tests/test-display-streaming.c| 2 +- > server/tests/test-display-widt

Re: [Spice-devel] [PATCH spice-server] red-channel-client: Rename item_in_pipe to item_sent

2017-12-01 Thread Jonathon Jongsma
Looks reasonable to me Acked-by: Jonathon Jongsma On Wed, 2017-11-29 at 17:14 +, Frediano Ziglio wrote: > The name is more consistent with the value of the flag and > the function red_channel_client_wait_pipe_item_sent where > the MarkerPipeItem structure is used. > > Signed-off-by: Fredi

Re: [Spice-devel] [PATCH spice-server] Reduce dependencies from red-qxl.h

2017-12-01 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Wed, 2017-11-22 at 11:05 +, Frediano Ziglio wrote: > This header is mainly exporting functions to handle public > interface for the QXL devices. > Avoid spreading its inclusion including this header in other > headers. > > Signed-off-by: Frediano Ziglio > ---

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

2017-12-01 Thread Frediano Ziglio
> > On Thu, 2017-11-30 at 13:40 -0500, Frediano Ziglio 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 > > >

Re: [Spice-devel] [PATCH spice-streaming-agent 2/2] Do not use an encoding not supported by the client

2017-12-01 Thread Frediano Ziglio
> > On Tue, 2017-11-21 at 09:49 +, Frediano Ziglio wrote: > > This allows for instance old clients to work correctly. > > > > Signed-off-by: Frediano Ziglio > > --- > > src/concrete-agent.cpp| 5 - > > src/concrete-agent.hpp| 3 ++- > > src/spice-streaming-agent.cpp | 6

Re: [Spice-devel] [PATCH spice-streaming-agent 1/2] Wait to have some client before initialising capture

2017-12-01 Thread Frediano Ziglio
> > On Tue, 2017-11-21 at 09:49 +, Frediano Ziglio wrote: > > This saves some resources if no client are connected. > > Also will allow to get a better capture engine taking into account > > client supported codecs. > > > > Signed-off-by: Frediano Ziglio > > --- > > src/spice-streaming-agen

Re: [Spice-devel] [PATCH spice-streaming-agent 2/2] Do not use an encoding not supported by the client

2017-12-01 Thread Jonathon Jongsma
On Tue, 2017-11-21 at 09:49 +, Frediano Ziglio wrote: > This allows for instance old clients to work correctly. > > Signed-off-by: Frediano Ziglio > --- > src/concrete-agent.cpp| 5 - > src/concrete-agent.hpp| 3 ++- > src/spice-streaming-agent.cpp | 6 +- > 3 files c

Re: [Spice-devel] [PATCH vdagent v3 2/3] retrieve _NET_WM_NAME using GDK

2017-12-01 Thread Jakub Janků
On Fri, 2017-12-01 at 17:11 +0100, Victor Toso wrote: > Hi, > > On Fri, Dec 01, 2017 at 04:29:32PM +0100, Jakub Janků wrote: > > Hi, > > > > On Fri, 2017-12-01 at 15:11 +0100, Victor Toso wrote: > > > Hi, > > > > > > On Mon, Nov 13, 2017 at 06:50:06PM +0100, Jakub Janků wrote: > > > > Get _NET_W

Re: [Spice-devel] [PATCH vdagent v3 2/3] retrieve _NET_WM_NAME using GDK

2017-12-01 Thread Victor Toso
Hi, On Fri, Dec 01, 2017 at 04:29:32PM +0100, Jakub Janků wrote: > Hi, > > On Fri, 2017-12-01 at 15:11 +0100, Victor Toso wrote: > > Hi, > > > > On Mon, Nov 13, 2017 at 06:50:06PM +0100, Jakub Janků wrote: > > > Get _NET_WM_NAME using gdk_x11_screen_get_window_manager_name(). > > > vdagent_x11_g

Re: [Spice-devel] [PATCH spice-streaming-agent 1/2] Wait to have some client before initialising capture

2017-12-01 Thread Jonathon Jongsma
On Tue, 2017-11-21 at 09:49 +, Frediano Ziglio wrote: > This saves some resources if no client are connected. > Also will allow to get a better capture engine taking into account > client supported codecs. > > Signed-off-by: Frediano Ziglio > --- > src/spice-streaming-agent.cpp | 14 +++-

Re: [Spice-devel] [PATCH vdagent v3 2/3] retrieve _NET_WM_NAME using GDK

2017-12-01 Thread Jakub Janků
Hi, On Fri, 2017-12-01 at 15:11 +0100, Victor Toso wrote: > Hi, > > On Mon, Nov 13, 2017 at 06:50:06PM +0100, Jakub Janků wrote: > > 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:

Re: [Spice-devel] [PATCH linux vdagent] Don't install udev rules into /lib

2017-12-01 Thread Victor Toso
Hi, On Wed, Nov 29, 2017 at 11:48:52AM -0600, Jonathon Jongsma wrote: > Ask udev (via pkg-config) for the appropriate directory to install udev > rules. This is useful for recent distributions (e.g. RHEL7, fedora) that > no longer have a root /lib directory and instead use /usr/lib > > Signed-off

Re: [Spice-devel] [PATCH linux vdagent] Avoid leaking fd when udscs_create_server_for_fd fails

2017-12-01 Thread Victor Toso
Hi, On Wed, Nov 29, 2017 at 11:48:43AM -0600, Jonathon Jongsma wrote: > Reported by Frediano Ziglio. if udscs_create_server_for_fd() fails, it > will return NULL and the file descriptor will be leaked. Since the > calling function is the one that created the fd, it should free the fd > if the serv

Re: [Spice-devel] [PATCH spice-common v3] protocol: Allow to specify a surface will be streamed

2017-12-01 Thread Victor Toso
Hi, On Mon, Nov 13, 2017 at 01:16:33PM +, Frediano Ziglio wrote: > This flag will allow the client to perform some optimisations > on output and buffering processing. > Old clients will ignore this additional flag. > > Signed-off-by: Frediano Ziglio > --- > Changes since v2: > - removed RFC

Re: [Spice-devel] [PATCH spice-common] codegen: Define identity macros for enum types

2017-12-01 Thread Victor Toso
Hi, On Thu, Nov 16, 2017 at 01:24:01PM +0100, Christophe Fergeau wrote: > On Thu, Nov 16, 2017 at 07:12:17AM -0500, Frediano Ziglio wrote: > > > > > > Hey, > > > > > > Some concrete examples of what you are going to do with it would be > > > useful ;) > > > > > > Christophe > > > > > > On Mon,

Re: [Spice-devel] [PATCH spice-server] stream: Remove unused display parameter

2017-12-01 Thread Victor Toso
Hi, On Fri, Dec 01, 2017 at 02:33:19PM +, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio Seems that was never used Acked-by: Victor Toso > --- > server/video-stream.c | 12 +--- > 1 file changed, 5 insertions(+), 7 deletions(-) > > diff --git a/server/video-stream.c b/se

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

2017-12-01 Thread Victor Toso
Hi, On Mon, Nov 13, 2017 at 06:50:07PM +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_

[Spice-devel] [PATCH spice-server] stream: Remove unused display parameter

2017-12-01 Thread Frediano Ziglio
Signed-off-by: Frediano Ziglio --- server/video-stream.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/server/video-stream.c b/server/video-stream.c index 65da3f8a..619e5ed3 100644 --- a/server/video-stream.c +++ b/server/video-stream.c @@ -218,8 +218,7 @@ stati

Re: [Spice-devel] [PATCH vdagent v3 2/3] retrieve _NET_WM_NAME using GDK

2017-12-01 Thread Victor Toso
Hi, On Mon, Nov 13, 2017 at 06:50:06PM +0100, Jakub Janků wrote: > 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

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

2017-12-01 Thread Frediano Ziglio
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? Do you know the server version? Qemu and spice-server versions would be help

[Spice-devel] ps lasso tool is obscure

2017-12-01 Thread 王子轩
How could this happened and how can i solve this problem?Plz return me soon. labtop based on Windows x64 SP1 ​ ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Spice-devel] ps lasso tool is obscure

2017-12-01 Thread ???????????? ?7?8
How could this happened and how can i solve this problem?Plz return me soon.<> <> ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/spice-devel

Re: [Spice-devel] [PATCH vdagent v3 1/3] vdagent: add GTK+

2017-12-01 Thread Christophe Fergeau
On Thu, Nov 30, 2017 at 01:06:37PM -0500, Frediano Ziglio wrote: > Yes, the 2 suggestions seem to conflict. I'm not sure about the page > I pointed out. For instance I just checked RHEL 7.4 and there's gtk 3.22 > so is fine, maybe the page is referring at the first release, not sure > if we should