Initial implementation of continuous updates in the server code. This code does not handle framebuffer size changes properly yet. Also, the server does not send the client EndOfContinuousUpdates message yet (documented in doc/rfbproto.tex).
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2251 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/SMsgReader.cxx b/common/rfb/SMsgReader.cxx
index f89e0f4..0e57ea7 100644
--- a/common/rfb/SMsgReader.cxx
+++ b/common/rfb/SMsgReader.cxx
@@ -95,3 +95,18 @@
is->readBytes(ca.buf, len);
handler->clientCutText(ca.buf, len);
}
+
+void SMsgReader::readEnableContinuousUpdates()
+{
+ bool enable = is->readU8();
+ int x = is->readU16();
+ int y = is->readU16();
+ int w = is->readU16();
+ int h = is->readU16();
+ if (enable) {
+ handler->enableContinuousUpdates(Rect(x, y, x+w, y+h));
+ } else {
+ handler->disableContinuousUpdates();
+ }
+}
+