summaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/vncviewer/CConn.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/tigervnc/vncviewer/CConn.java')
-rw-r--r--java/com/tigervnc/vncviewer/CConn.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/java/com/tigervnc/vncviewer/CConn.java b/java/com/tigervnc/vncviewer/CConn.java
index 0ad69067..498b4c87 100644
--- a/java/com/tigervnc/vncviewer/CConn.java
+++ b/java/com/tigervnc/vncviewer/CConn.java
@@ -625,6 +625,7 @@ public class CConn extends CConnection
(newFullColour ? "enabled" : "disabled"));
fullColour = newFullColour;
formatChange = true;
+ forceNonincremental = true;
}
}
@@ -680,7 +681,7 @@ public class CConn extends CConnection
if (forceNonincremental || !continuousUpdates) {
pendingUpdate = true;
writer().writeFramebufferUpdateRequest(new Rect(0,0,cp.width,cp.height),
- !formatChange && !forceNonincremental);
+ !forceNonincremental);
}
forceNonincremental = false;
@@ -921,8 +922,10 @@ public class CConn extends CConnection
public void getOptions() {
autoSelect = options.autoSelect.isSelected();
- if (fullColour != options.fullColour.isSelected())
+ if (fullColour != options.fullColour.isSelected()) {
formatChange = true;
+ forceNonincremental = true;
+ }
fullColour = options.fullColour.isSelected();
if (!fullColour) {
int newLowColourLevel = (options.veryLowColour.isSelected() ? 0 :
@@ -930,6 +933,7 @@ public class CConn extends CConnection
if (newLowColourLevel != lowColourLevel) {
lowColourLevel = newLowColourLevel;
formatChange = true;
+ forceNonincremental = true;
}
}
int newEncoding = (options.zrle.isSelected() ? Encodings.encodingZRLE :