From b3a3d1f9ba7419bd25ecb9b033c2514cf77a0889 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 26 May 2018 06:54:37 +0000 Subject: [PATCH] if the server is in readonly mode, don't bother sending pointer and key events as those would trigger warnings git-svn-id: https://xpra.org/svn/Xpra/trunk@19471 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/client/client_window_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xpra/client/client_window_base.py b/src/xpra/client/client_window_base.py index 22466e065b..d58b3ed7e2 100644 --- a/src/xpra/client/client_window_base.py +++ b/src/xpra/client/client_window_base.py @@ -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) @@ -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)