Skip to content

Commit

Permalink
if the server is in readonly mode, don't bother sending pointer and k…
Browse files Browse the repository at this point in the history
…ey events as those would trigger warnings

git-svn-id: https://xpra.org/svn/Xpra/trunk@19471 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 26, 2018
1 parent 0e13056 commit b3a3d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/client/client_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ def get_mouse_event_wid(self, _x, _y):
return self._id

def do_motion_notify_event(self, event):
if self._client.readonly:
if self._client.readonly or self._client.server_readonly:
return
pointer, modifiers, buttons = self._pointer_modifiers(event)
wid = self.get_mouse_event_wid(*pointer)
Expand All @@ -696,7 +696,7 @@ def _device_info(self, event):
return ""

def _button_action(self, button, event, depressed, *args):
if self._client.readonly:
if self._client.readonly or self._client.server_readonly:
return
pointer, modifiers, buttons = self._pointer_modifiers(event)
wid = self.get_mouse_event_wid(*pointer)
Expand Down

0 comments on commit b3a3d1f

Please sign in to comment.