summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-03-02 14:32:22 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:49:13 -0600
commit92baf99b7f7c2e502552e9d23960306a5c1a4ae9 (patch)
treee69e17fe3fce8e9bf54c1611087032dd112880bd
parentbe0edaacdca101bfce57861bb8bebf24683900b1 (diff)
downloadhqemu-92baf99b7f7c2e502552e9d23960306a5c1a4ae9.zip
hqemu-92baf99b7f7c2e502552e9d23960306a5c1a4ae9.tar.gz
vnc: send cursor when a new client is connecting
If you have hardware cursor and you are reconnecting the VNC client you need to send the cursor. Failing to do so make the cursor invisible till is changed. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Message-id: 1456929142-14033-1-git-send-email-fziglio@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--ui/vnc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/vnc.c b/ui/vnc.c
index 6cd6314..729f630 100644
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -2046,6 +2046,9 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings)
break;
case VNC_ENCODING_RICH_CURSOR:
vs->features |= VNC_FEATURE_RICH_CURSOR_MASK;
+ if (vs->vd->cursor) {
+ vnc_cursor_define(vs);
+ }
break;
case VNC_ENCODING_EXT_KEY_EVENT:
send_ext_key_event_ack(vs);
OpenPOWER on IntegriCloud