summaryrefslogtreecommitdiffstats
path: root/common/rfb/ConnParams.cxx
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2009-01-15 12:21:42 +0000
committerPeter Åstrand <astrand@cendio.se>2009-01-15 12:21:42 +0000
commitc39e0789686690c534996ee60e0914bd88631c4e (patch)
treee6c25505e2eb06821212a1a3723946da2cd785a9 /common/rfb/ConnParams.cxx
parent6978fc0bdb218dd9ff5d3519a9d959306f3742dd (diff)
downloadtigervnc-c39e0789686690c534996ee60e0914bd88631c4e.tar.gz
tigervnc-c39e0789686690c534996ee60e0914bd88631c4e.zip
Implemented support for DesktopName pseudo encoding, which allows
updating the desktop name on the fly. Tested in ThinLinc since 2008-01-07. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3549 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/ConnParams.cxx')
-rw-r--r--common/rfb/ConnParams.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/rfb/ConnParams.cxx b/common/rfb/ConnParams.cxx
index 446c3ad5..b328a1f8 100644
--- a/common/rfb/ConnParams.cxx
+++ b/common/rfb/ConnParams.cxx
@@ -29,7 +29,7 @@ using namespace rfb;
ConnParams::ConnParams()
: majorVersion(0), minorVersion(0), tightExtensionsEnabled(false),
width(0), height(0), useCopyRect(false),
- supportsLocalCursor(false), supportsLocalXCursor(false), supportsDesktopResize(true),
+ supportsLocalCursor(false), supportsLocalXCursor(false), supportsDesktopResize(true), supportsDesktopRename(false),
supportsLastRect(false), customCompressLevel(false), compressLevel(6),
noJpeg(false), qualityLevel(-1),
name_(0), nEncodings_(0), encodings_(0),
@@ -111,6 +111,8 @@ void ConnParams::setEncodings(int nEncodings, const rdr::U32* encodings)
supportsLocalXCursor = true;
else if (encodings[i] == pseudoEncodingDesktopSize)
supportsDesktopResize = true;
+ else if (encodings[i] == pseudoEncodingDesktopName)
+ supportsDesktopRename = true;
else if (encodings[i] == pseudoEncodingLastRect)
supportsLastRect = true;
else if (encodings[i] >= pseudoEncodingCompressLevel0 &&