From 2524573678fbdb195cbc9ba2f92e0f58c205ad10 Mon Sep 17 00:00:00 2001 From: Monkey Date: Sun, 22 Apr 2012 11:38:33 -0400 Subject: [PATCH] Added support for UltraVNC Single Click as originally proposed by Noobius (Boobius) on 6/1/11. Original thread: http://sourceforge.net/tracker/?func=detail&aid=3310255&group_id=32584&atid=405860 --- libvncclient/rfbproto.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index 3dfd0c5..70fab19 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -1076,6 +1076,14 @@ InitialiseRFBConnection(rfbClient* client) DefaultSupportedMessagesUltraVNC(client); } + /* UltraVNC Single Click uses minor codes 14 and 16 for the server */ + if (major==3 && (minor==14 || minor==16)) { + minor = minor - 10; + client->minor = minor; + rfbClientLog("UltraVNC Single Click server detected, enabling UltraVNC specific messages\n",pv); + DefaultSupportedMessagesUltraVNC(client); + } + /* TightVNC uses minor codes 5 for the server */ if (major==3 && minor==5) { rfbClientLog("TightVNC server detected, enabling TightVNC specific messages\n",pv);