diff --git a/src/xpra/client/gtk_base/gtk_tray_menu_base.py b/src/xpra/client/gtk_base/gtk_tray_menu_base.py index 13477e537e..f400cc0f6a 100644 --- a/src/xpra/client/gtk_base/gtk_tray_menu_base.py +++ b/src/xpra/client/gtk_base/gtk_tray_menu_base.py @@ -179,6 +179,8 @@ def make_cursorsmenuitem(self): def cursors_toggled(*args): self.client.cursors_enabled = self.cursors_menuitem.get_active() self.client.send_cursors_enabled() + if not self.client.cursors_enabled: + self.client.reset_cursor() log.debug("cursors_toggled(%s) cursors_enabled=%s", args, self.client.cursors_enabled) self.cursors_menuitem = self.checkitem("Cursors", cursors_toggled) self.cursors_menuitem.set_sensitive(False) diff --git a/src/xpra/client/ui_client_base.py b/src/xpra/client/ui_client_base.py index 9c5a763770..bc5bcee1bc 100644 --- a/src/xpra/client/ui_client_base.py +++ b/src/xpra/client/ui_client_base.py @@ -873,6 +873,9 @@ def set_encoding(self, encoding): self.send("encoding", encoding) + def reset_cursor(self): + self.set_windows_cursor(self._id_to_window.values(), []) + def _ui_event(self): if self._ui_events==0: self.emit("first-ui-received")