Skip to content

Commit

Permalink
fix RFB server errors when input-devices are disabled
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19460 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 26, 2018
1 parent c147302 commit 19e9fce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/xpra/server/rfb/rfb_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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))
Expand All @@ -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
Expand Down

0 comments on commit 19e9fce

Please sign in to comment.