summaryrefslogtreecommitdiffstats
path: root/extra/source/tigervnc/patches/force_protocol_3.3_for_UVNCSC.patch
blob: 56096edc3a019a248daa25a83fb7b760a95235ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -Naur tigervnc-1.8.0.orig/common/rfb/CConnection.cxx tigervnc-1.8.0/common/rfb/CConnection.cxx
--- tigervnc-1.8.0.orig/common/rfb/CConnection.cxx	2017-05-16 15:53:28.000000000 +0200
+++ tigervnc-1.8.0/common/rfb/CConnection.cxx	2018-05-15 09:44:02.021640000 +0200
@@ -138,6 +138,13 @@
   vlog.info("Server supports RFB protocol version %d.%d",
             cp.majorVersion, cp.minorVersion);
 
+  // Mark's Hack
+  if (cp.minorVersion==16) {
+    cp.setVersion(3,3);
+    vlog.info("Hack #1 for 3.16");
+    cp.minorVersion=3;
+  }
+
   // The only official RFB protocol versions are currently 3.3, 3.7 and 3.8
   if (cp.beforeVersion(3,3)) {
     vlog.error("Server gave unsupported RFB protocol version %d.%d",