diff options
author | Devaev Maxim <[email protected]> | 2020-06-03 01:59:15 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-06-03 01:59:15 +0300 |
commit | 54f0e1990beb18be2ee9483ba6a727a8a22a0fa6 (patch) | |
tree | c62985c7a07acb167f406f15aa032d62d8c39816 | |
parent | cb9597679d8c9189e671e166de45c707c650bb2f (diff) |
fixed rfb leds
-rw-r--r-- | kvmd/apps/vnc/rfb/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/vnc/rfb/__init__.py b/kvmd/apps/vnc/rfb/__init__.py index b5d690b3..f45021bd 100644 --- a/kvmd/apps/vnc/rfb/__init__.py +++ b/kvmd/apps/vnc/rfb/__init__.py @@ -176,7 +176,7 @@ class RfbClient(RfbClientStream): # pylint: disable=too-many-instance-attribute async def _send_leds_state(self, caps: bool, scroll: bool, num: bool) -> None: assert self._encodings.has_leds_state await self._write_fb_update(0, 0, RfbEncodings.LEDS_STATE, drain=False) - await self._write_struct("B", 0x1 & scroll | 0x2 & num | 0x4 & caps) + await self._write_struct("B", int(scroll) | int(num) << 1 | int(caps) << 2) # ===== |