Skip to content

Commit

Permalink
#2502 we have to intercept the 'delete-event' not 'destroy'
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@24557 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 1, 2019
1 parent 5bd2620 commit 068b36f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/client/gtk_base/server_commands.py
Expand Up @@ -39,7 +39,7 @@ def __init__(self, client):
self.table = None
self.window = Gtk.Window()
self.window.set_border_width(20)
self.window.connect("destroy", self.close)
self.window.connect("delete-event", self.close)
self.window.set_default_size(400, 150)
self.window.set_title("Server Commands")

Expand Down Expand Up @@ -184,6 +184,7 @@ def hide(self):
def close(self, *args):
log("close%s", args)
self.hide()
return True

def destroy(self, *args):
log("destroy%s", args)
Expand Down

0 comments on commit 068b36f

Please sign in to comment.