aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/VNCServerST.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/VNCServerST.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/VNCServerST.cxx')
-rw-r--r--common/rfb/VNCServerST.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx
index fc2e931b..d36354c8 100644
--- a/common/rfb/VNCServerST.cxx
+++ b/common/rfb/VNCServerST.cxx
@@ -302,6 +302,16 @@ void VNCServerST::serverCutText(const char* str, int len)
}
}
+void VNCServerST::setName(const char* name_)
+{
+ name.replaceBuf(strDup(name_));
+ std::list<VNCSConnectionST*>::iterator ci, ci_next;
+ for (ci = clients.begin(); ci != clients.end(); ci = ci_next) {
+ ci_next = ci; ci_next++;
+ (*ci)->setDesktopName(name_);
+ }
+}
+
void VNCServerST::add_changed(const Region& region)
{
if (comparer != 0) {