Skip to content

Commit

Permalink
#2452 when we don't own the selection, make sure we clear the target …
Browse files Browse the repository at this point in the history
…cache

git-svn-id: https://xpra.org/svn/Xpra/trunk@24461 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 19, 2019
1 parent 29952f5 commit 950a867
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/xpra/x11/gtk_x11/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ def do_selection_notify_event(self, event):
return
if self.owned or not self._can_send or xid==0:
return
self.do_owner_changed()
self.schedule_emit_token()

def schedule_emit_token(self):
Expand Down Expand Up @@ -532,8 +533,6 @@ def do_selection_clear_event(self, event):

def do_owner_changed(self):
log("do_owner_changed()")
if not self._enabled:
return
self.target_data = {}
self.targets = ()

Expand Down

0 comments on commit 950a867

Please sign in to comment.