diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2016-03-02 14:32:22 +0000 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-03-08 10:45:01 +0100 |
commit | 91ec41dc3f9cf28f93af0630b20ba8e7dcefa16b (patch) | |
tree | daaa22f6f7526a4c69df6fa8d74e33d85d143d13 /ui | |
parent | 1464ad45cd6cdeb0b5c1a54d3d3791396e47e52f (diff) | |
download | qemu-91ec41dc3f9cf28f93af0630b20ba8e7dcefa16b.zip qemu-91ec41dc3f9cf28f93af0630b20ba8e7dcefa16b.tar.gz qemu-91ec41dc3f9cf28f93af0630b20ba8e7dcefa16b.tar.bz2 |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/vnc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |