Skip to content

Commit

Permalink
#276: never send the token unless we can send clipboard data
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@14638 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 29, 2016
1 parent 116693d commit 192dfd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/clipboard/clipboard_base.py
Expand Up @@ -535,7 +535,7 @@ def do_owner_changed(self, *args):
log("clipboard: %s owner_changed, enabled=%s, can-send=%s, can-receive=%s, have_token=%s, greedy_client=%s, block_owner_change=%s", self._selection, self._enabled, self._can_send, self._can_receive, self._have_token, self._greedy_client, self._block_owner_change)
if not self._enabled or self._block_owner_change:
return
if (self._can_send and self._greedy_client) or (self._have_token and not self._can_receive):
if self._can_send and self._greedy_client:
self._block_owner_change = True
self._have_token = False
self.emit("send-clipboard-token")
Expand Down

0 comments on commit 192dfd2

Please sign in to comment.