We need to set encodingChange for the client to actually request a new
encoding. Previously the code would sometimes get stuck in the previous
one.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4001 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/vncviewer/CConn.cxx b/unix/vncviewer/CConn.cxx
index 5fc809f..76dd4ec 100644
--- a/unix/vncviewer/CConn.cxx
+++ b/unix/vncviewer/CConn.cxx
@@ -778,7 +778,10 @@
int newQualityLevel = qualityLevel;
// Always use Tight
- currentEncoding = encodingTight;
+ if (currentEncoding != encodingTight) {
+ currentEncoding = encodingTight;
+ encodingChange = true;
+ }
// Check that we have a decent bandwidth measurement
if ((kbitsPerSecond == 0) || (timeWaited < 10000))