Skip to content

Commit

Permalink
r13989 for osx: handle claim argument
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@13990 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 5, 2016
1 parent 095ffbf commit 79e178a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/xpra/platform/darwin/osx_clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,17 @@ def __init__(self, selection):
global change_callbacks
change_callbacks.append(self.local_clipboard_changed)

def got_token(self, targets, target_data):
def got_token(self, targets, target_data, claim):
# We got the anti-token.
log("got token, selection=%s, targets=%s, target_data=%s", self._selection, targets, target_data)
if not self._enabled:
return
self._got_token_events += 1
if not claim:
log("token packet without claim, not setting the token flag")
#the other end is just telling us to send the token again next time something changes,
#not that they want to own the clipboard selection
return
self._block_owner_change = True
self._have_token = True
for target in targets:
Expand Down

0 comments on commit 79e178a

Please sign in to comment.