Skip to content

Commit

Permalink
when closing the window, explicitly close the gl backing so it has a …
Browse files Browse the repository at this point in the history
…chance to run its own cleanups

git-svn-id: https://xpra.org/svn/Xpra/trunk@10776 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 9, 2015
1 parent 4255583 commit f056a88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/xpra/client/gl/gtk2/gl_client_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def do_configure_event(self, event):
self._backing.paint_screen = True

def destroy(self):
self._backing.paint_screen = False
b = self._backing
if b:
b.paint_screen = False
b.close()
GTK2WindowBase.destroy(self)

def magic_key(self, *args):
Expand Down
5 changes: 4 additions & 1 deletion src/xpra/client/gl/gtk3/gl_client_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ def do_configure_event(self, event):
self._backing.paint_screen = True

def destroy(self):
self._backing.paint_screen = False
b = self._backing
if b:
b.paint_screen = False
b.close()
ClientWindow.destroy(self)

def magic_key(self, *args):
Expand Down

0 comments on commit f056a88

Please sign in to comment.