diff options
author | Pierre Ossman <ossman@cendio.se> | 2016-12-12 16:59:15 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2017-08-24 12:38:05 +0200 |
commit | b45a84f9531c3659364676af49d589fab060633b (patch) | |
tree | 256c47093a313284069399130512232235a204ac /common/rfb/SMsgHandler.cxx | |
parent | ac94b50e634e50dbb507b01759678a526dda34a3 (diff) | |
download | tigervnc-b45a84f9531c3659364676af49d589fab060633b.tar.gz tigervnc-b45a84f9531c3659364676af49d589fab060633b.zip |
Send lock LED state from server to client
Diffstat (limited to 'common/rfb/SMsgHandler.cxx')
-rw-r--r-- | common/rfb/SMsgHandler.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/rfb/SMsgHandler.cxx b/common/rfb/SMsgHandler.cxx index 388b21f8..8e48c673 100644 --- a/common/rfb/SMsgHandler.cxx +++ b/common/rfb/SMsgHandler.cxx @@ -41,10 +41,11 @@ void SMsgHandler::setPixelFormat(const PixelFormat& pf) void SMsgHandler::setEncodings(int nEncodings, const rdr::S32* encodings) { - bool firstFence, firstContinuousUpdates; + bool firstFence, firstContinuousUpdates, firstLEDState; firstFence = !cp.supportsFence; firstContinuousUpdates = !cp.supportsContinuousUpdates; + firstLEDState = !cp.supportsLEDState; cp.setEncodings(nEncodings, encodings); @@ -54,6 +55,8 @@ void SMsgHandler::setEncodings(int nEncodings, const rdr::S32* encodings) supportsFence(); if (cp.supportsContinuousUpdates && firstContinuousUpdates) supportsContinuousUpdates(); + if (cp.supportsLEDState && firstLEDState) + supportsLEDState(); } void SMsgHandler::supportsLocalCursor() @@ -68,6 +71,10 @@ void SMsgHandler::supportsContinuousUpdates() { } +void SMsgHandler::supportsLEDState() +{ +} + void SMsgHandler::setDesktopSize(int fb_width, int fb_height, const ScreenSet& layout) { |