Skip to content

Commit

Permalink
always claim ownership if enabled, even when we receive a "no content…
Browse files Browse the repository at this point in the history
…s" response

git-svn-id: https://xpra.org/svn/Xpra/trunk@3045 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 28, 2013
1 parent 4c9f901 commit d9f0c5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xpra/platform/clipboard_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,12 @@ def do_selection_get(self, selection_data, info, time):
debug("do_selection_get(%s,%s,%s) calling selection_data.set(%s, %s, %s:%s), claim_ownership=%s",
selection_data, info, time, dtype, dformat, type(data), len(data or ""), self._claim_ownership)
selection_data.set(dtype, dformat, data)
if self._claim_ownership:
#workaround used in TranslatedClipboard to claim clipboard ownership
self.emit("send-clipboard-token", self._selection)
debug("do_selection_get: claiming %s ownership", self._selection)
else:
debug("remote selection fetch timed out or empty")
if self._claim_ownership:
#workaround used in TranslatedClipboard to claim clipboard ownership
self.emit("send-clipboard-token", self._selection)
debug("do_selection_get: claiming %s ownership", self._selection)

def do_selection_clear_event(self, event):
# Someone else on our side has the selection
Expand Down

0 comments on commit d9f0c5d

Please sign in to comment.