Home
last modified time | relevance | path

Searched hist:c7628bff4138ce906a3620d12e0820c1cf6c140d (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/ui/
H A Dvnc.cdiff b69a553b4af9bc87a8b2e0a7b7a7de4cc7f0557e Tue Aug 16 11:30:32 CDT 2016 Daniel P. Berrange <berrange@redhat.com> ui: fix refresh of VNC server surface

In previous commit

commit c7628bff4138ce906a3620d12e0820c1cf6c140d
Author: Gerd Hoffmann <kraxel@redhat.com>
Date: Fri Oct 30 12:10:09 2015 +0100

vnc: only alloc server surface with clients connected

the VNC server was changed so that the 'vd->server' pixman
image was only allocated when a client is connected.

Since then if a client disconnects and then reconnects to
the VNC server all they will see is a black screen until
they do something that triggers a refresh. On a graphical
desktop this is not often noticed since there's many things
going on which cause a refresh. On a plain text console it
is really obvious since nothing refreshes frequently.

The problem is that the VNC server didn't update the guest
dirty bitmap, so still believes its server image is in sync
with the guest contents.

To fix this we must explicitly mark the entire guest desktop
as dirty after re-creating the server surface. Move this
logic into vnc_update_server_surface() so it is guaranteed
to be call in all code paths that re-create the surface
instead of only in vnc_dpy_switch()

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Peter Lieven <pl@kamp.de>
Tested-by: Peter Lieven <pl@kamp.de>
Message-id: 1471365032-18096-1-git-send-email-berrange@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
diff c7628bff4138ce906a3620d12e0820c1cf6c140d Fri Oct 30 06:10:09 CDT 2015 Gerd Hoffmann <kraxel@redhat.com> vnc: only alloc server surface with clients connected

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1446203414-4013-15-git-send-email-kraxel@redhat.com