summaryrefslogtreecommitdiffstats
path: root/vncviewer/CConn.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-12-05 15:26:21 +0100
committerPierre Ossman <ossman@cendio.se>2017-08-24 12:33:03 +0200
commit2fa63f8576e5d1c632efeeb2c185f11e943899d8 (patch)
tree9a4e68d8be1ff669c2c07b95380ba4a0a71a3e6d /vncviewer/CConn.cxx
parent82e753d4e1928342c82cc7b82e854aa2666d1145 (diff)
downloadtigervnc-2fa63f8576e5d1c632efeeb2c185f11e943899d8.tar.gz
tigervnc-2fa63f8576e5d1c632efeeb2c185f11e943899d8.zip
Add client support for LED state sync
Diffstat (limited to 'vncviewer/CConn.cxx')
-rw-r--r--vncviewer/CConn.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx
index 2e97ec28..07e7841c 100644
--- a/vncviewer/CConn.cxx
+++ b/vncviewer/CConn.cxx
@@ -92,6 +92,8 @@ CConn::CConn(const char* vncServerName, network::Socket* socket=NULL)
cp.supportsExtendedDesktopSize = true;
cp.supportsDesktopRename = true;
+ cp.supportsLEDState = true;
+
if (customCompressLevel)
cp.compressLevel = compressLevel;
else
@@ -503,6 +505,13 @@ void CConn::fence(rdr::U32 flags, unsigned len, const char data[])
}
}
+void CConn::setLEDState(unsigned int state)
+{
+ CConnection::setLEDState(state);
+
+ desktop->setLEDState(state);
+}
+
////////////////////// Internal methods //////////////////////