BACKPORT: vnc: fix copyrect screen corruption
commit30157150182db6907cde111d8c3d76224b0841df
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 27 Jul 2009 15:10:48 +0000 (27 17:10 +0200)
committerMark McLoughlin <markmc@redhat.com>
Fri, 11 Sep 2009 10:36:04 +0000 (11 11:36 +0100)
tree1a62b6f1a9e3e20d6b6963a64a948368416b6a37
parent5f09a0ae5e1b81890f8945336bf81ac11d2e2e8c
BACKPORT: vnc: fix copyrect screen corruption

When sending a copyrect command to the vnc client, we must also update
the local server surface.  Otherwise the server's and the client's idea
of the screen content run out of sync and screen updates don't work
correctly.

[ backport: uses ds_get_data() instead of direct dereference ]

(cherry picked from commit 74ccfe8b7e9c351b3196f68795126e76060903b3)

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Fedora-patch: qemu-fix-vnc-copyrect-screen-corruption.patch
vnc.c