From 7d964c9d2fc614d2baa788b9e77019b32151f162 Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Fri, 4 Feb 2011 09:05:56 +0100 Subject: vnc: refresh lossy rect after a given timeout If an adaptive encoding has choosen to send a lossy update based on the result of vnc_update_freq(), then it should advertise it with vnc_sent_lossy_rect(). This will allow to automatically refresh this rect once it's static again. Signed-off-by: Corentin Chary Signed-off-by: Anthony Liguori --- ui/vnc-jobs-async.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/vnc-jobs-async.c') diff --git a/ui/vnc-jobs-async.c b/ui/vnc-jobs-async.c index 0b5d750f26..bfe8e86e18 100644 --- a/ui/vnc-jobs-async.c +++ b/ui/vnc-jobs-async.c @@ -166,6 +166,7 @@ static void vnc_async_encoding_start(VncState *orig, VncState *local) local->features = orig->features; local->ds = orig->ds; local->vd = orig->vd; + local->lossy_rect = orig->lossy_rect; local->write_pixels = orig->write_pixels; local->clientds = orig->clientds; local->tight = orig->tight; @@ -182,6 +183,7 @@ static void vnc_async_encoding_end(VncState *orig, VncState *local) orig->tight = local->tight; orig->zlib = local->zlib; orig->hextile = local->hextile; + orig->lossy_rect = local->lossy_rect; } static int vnc_worker_thread_loop(VncJobQueue *queue) -- cgit v1.2.3