]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commitdiff
vnc: send desktopresize event as reply to set encodings
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 25 May 2010 16:25:17 +0000 (18:25 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Jun 2010 18:30:08 +0000 (13:30 -0500)
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>
vnc.c

diff --git a/vnc.c b/vnc.c
index 4fb13ba88658c9377d92259bddb60a076fe79fc5..a3a7840075fffcdf683532fed510cdfd1f614b5f 100644 (file)
--- 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);
 }