[Spice-devel] [RFC v4 30/62] server/red_worker: don't send redundant create surface to client

Marc-André Lureau marcandre.lureau at gmail.com
Mon May 2 16:56:13 PDT 2011


Could be merged with 29/62: server/red_worker: split display and cursor channels

I would add the comment in the code.

On Tue, Apr 26, 2011 at 12:54 PM, Alon Levy <alevy at redhat.com> wrote:
> ---
>  server/red_worker.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/server/red_worker.c b/server/red_worker.c
> index 683df38..2bc0abf 100644
> --- a/server/red_worker.c
> +++ b/server/red_worker.c
> @@ -8593,7 +8593,7 @@ static inline void __red_create_surface_item(RedWorker *worker,
>     SurfaceCreateItem *create;
>     Surfaces *surfaces = dcc ? dcc->common.surfaces : NULL;
>
> -    if (!dcc) {
> +    if (!dcc || dcc->surface_client_created[surface_id]) {
>         return;
>     }
>     surface = &surfaces->surfaces[surface_id];
> --
> 1.7.4.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>



-- 
Marc-André Lureau


More information about the Spice-devel mailing list