Skip to content

Commit

Permalink
#2280: don't reset the selection on exit as this crashes GTK3
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@22501 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 22, 2019
1 parent 9b125a2 commit fe950b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/xpra/x11/gtk_x11/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,11 @@ def __repr__(self):
def cleanup(self):
log("%s.cleanup()", self)
#give up selection:
if self.owned:
with xswallow:
X11Window.XSetSelectionOwner(0, self._selection)
#(disabled because this crashes GTK3 on exit)
#if self.owned:
# self.owned = False
# with xswallow:
# X11Window.XSetSelectionOwner(0, self._selection)
#empty replies for all pending requests,
#this will also cancel any pending timers:
rr = self.remote_requests
Expand Down

0 comments on commit fe950b3

Please sign in to comment.