Skip to content

Commit

Permalink
#341: when disabling cursor forwarding, reset it for all the windows
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@3420 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 17, 2013
1 parent c3599b4 commit 3f7b0e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xpra/client/gtk_base/gtk_tray_menu_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions src/xpra/client/ui_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3f7b0e1

Please sign in to comment.