From 6365828003c8e88bff67d351af4b66c406568a26 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 23 Jul 2014 11:52:02 +0200 Subject: vnc update fix We need to remember has_updates for each vnc client. Otherwise it might happen that vnc_update_client(has_dirty=1) takes the first exit due to output buffers not being flushed yet and subsequent calls with has_dirty=0 take the second exit, wrongly assuming there is nothing to do because the work defered in the first call is ignored. Signed-off-by: Gerd Hoffmann Reviewed-by: Peter Lieven --- ui/vnc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/vnc.h') diff --git a/ui/vnc.h b/ui/vnc.h index 8f582fdc6c..334de9ddb1 100644 --- a/ui/vnc.h +++ b/ui/vnc.h @@ -263,6 +263,7 @@ struct VncState VncDisplay *vd; int need_update; int force_update; + int has_dirty; uint32_t features; int absolute; int last_x; -- cgit v1.2.1