Support for VideoRectangleSelection client message in the server code. The message is read but ignored (only a message will be written to stderr).
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2559 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/SConnection.cxx b/common/rfb/SConnection.cxx
index bede90e..2fde9fb 100644
--- a/common/rfb/SConnection.cxx
+++ b/common/rfb/SConnection.cxx
@@ -46,7 +46,8 @@
: readyForSetColourMapEntries(false),
is(0), os(0), reader_(0), writer_(0),
security(0), securityFactory(secFact), state_(RFBSTATE_UNINITIALISED),
- reverseConnection(reverseConnection_)
+ reverseConnection(reverseConnection_),
+ m_videoSelectionEnabled(false)
{
defaultMajorVersion = 3;
defaultMinorVersion = 8;
@@ -76,6 +77,11 @@
os = os_;
}
+void SConnection::setProtocolOptions(bool enableVideoSelection)
+{
+ m_videoSelectionEnabled = enableVideoSelection;
+}
+
void SConnection::initialiseProtocol()
{
cp.writeVersion(os);
@@ -464,10 +470,16 @@
ccaps.addTightExt(msgTypeFileDeleteRequest, "FTC_RMRQ");
*/
- // Continuous updates:
ccaps.addTightExt(msgTypeEnableContinuousUpdates, "CUC_ENCU");
+ if (m_videoSelectionEnabled) {
+ ccaps.addTightExt(msgTypeVideoRectangleSelection, "VRECTSEL");
+ }
+
+ //
// Advertise all supported encoding types (except raw encoding).
+ //
+
CapsList ecaps;
// First, add true encodings.