aboutsummaryrefslogtreecommitdiff
path: root/vnc.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-05-25 18:25:17 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-06-01 13:30:08 -0500
commit6356e472512c55a5dc3aaf12ce12a6eb916dd045 (patch)
treeb2986ae39e6403b3129a78c6642615838c8d5e84 /vnc.c
parent621aaeb9991933a367e3964ecfc88a8f96af1f6a (diff)
vnc: send desktopresize event as reply to set encodings
In case the desktop did resize while the vnc connection setup was still in progress the client isn't informed about it. Send a desktop resize event as soon as the client told us it can handle deskop resize via set encodings message to make sure the client us up to date. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vnc.c')
-rw-r--r--vnc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vnc.c b/vnc.c
index 4fb13ba886..a3a7840075 100644
--- a/vnc.c
+++ b/vnc.c
@@ -1726,6 +1726,7 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings)
break;
}
}
+ vnc_desktop_resize(vs);
check_pointer_type_change(&vs->mouse_mode_notifier);
}