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

Alon Levy alevy at redhat.com
Tue Apr 26 03:54:55 PDT 2011


---
 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



More information about the Spice-devel mailing list