]> source.dussan.org Git - tigervnc.git/commitdiff
Add missing break for LED state check
authorPierre Ossman <ossman@cendio.se>
Wed, 28 Mar 2018 10:33:22 +0000 (12:33 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 28 Mar 2018 10:33:22 +0000 (12:33 +0200)
The previous code would incorrectly also add support for QEMU
key events if LED state was supported.

common/rfb/ConnParams.cxx

index 23f02ed0e43caf55740682f0ab20d3e939a209b5..80b4a5ac4dfbada7e4abdbfb0ee07c1d4890a769 100644 (file)
@@ -147,6 +147,7 @@ void ConnParams::setEncodings(int nEncodings, const rdr::S32* encodings)
       break;
     case pseudoEncodingLEDState:
       supportsLEDState = true;
+      break;
     case pseudoEncodingQEMUKeyEvent:
       supportsQEMUKeyEvent = true;
       break;