Skip to contentSkip to conversation

vnc: send cursor when a new client is connecting

PATCH In review Frediano Ziglio 2 participants 2 messages Mar 2, 2016 – Mar 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 ui/vnc.c | 3 +++
 1 file changed, 3 insertions(+)
ui/vnc.c +3 -0
index ce4c669..825e65b 100644
@@ -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);
Signature · 1 line
2.5.0
#1 lore raw
Quoted 5 lines · Frediano Ziglio

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.

added to ui patch queue.

thanks,
Gerd