diff options
author | Monkey <chris.boyle.1978@gmail.com> | 2012-04-22 11:38:33 -0400 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2012-04-23 11:49:37 +0200 |
commit | 2524573678fbdb195cbc9ba2f92e0f58c205ad10 (patch) | |
tree | bf9c451f7fec07f62c9be653820035e84f6231c7 | |
parent | 91d0a8497b370a0f0a174cc7e4b4ca33ab146c7d (diff) | |
download | libtdevnc-2524573678fbdb195cbc9ba2f92e0f58c205ad10.tar.gz libtdevnc-2524573678fbdb195cbc9ba2f92e0f58c205ad10.zip |
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
-rw-r--r-- | libvncclient/rfbproto.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |