From 19e9fce580214703c1e150d5722228797f2afd71 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 26 May 2018 06:24:42 +0000 Subject: [PATCH] fix RFB server errors when input-devices are disabled git-svn-id: https://xpra.org/svn/Xpra/trunk@19460 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/server/rfb/rfb_server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xpra/server/rfb/rfb_server.py b/src/xpra/server/rfb/rfb_server.py index c887c93c7f..855651185d 100644 --- a/src/xpra/server/rfb/rfb_server.py +++ b/src/xpra/server/rfb/rfb_server.py @@ -10,6 +10,7 @@ from xpra.server.rfb.rfb_const import RFBEncoding, RFB_KEYNAMES from xpra.server.rfb.rfb_protocol import RFBProtocol from xpra.server.rfb.rfb_source import RFBSource +from xpra.server import server_features from xpra.log import Logger log = Logger("rfb") @@ -102,6 +103,8 @@ def _process_rfb_authenticated(self, proto, _packet): start_refresh() def _process_rfb_PointerEvent(self, _proto, packet): + if not server_features.input_devices: + return buttons, x, y = packet[1:4] wid = self._get_rfb_desktop_wid() self._move_pointer(wid, (x, y)) @@ -115,6 +118,8 @@ def _process_rfb_PointerEvent(self, _proto, packet): self.rfb_buttons = buttons def _process_rfb_KeyEvent(self, proto, packet): + if not server_features.input_devices: + return source = self._server_sources.get(proto) if not source: return