Skip to content

Commit

Permalink
Fixed issue gnome-terminator#425 (hide_window will try to show destro…
Browse files Browse the repository at this point in the history
…yed windows)
  • Loading branch information
Vulcalien committed Jun 25, 2021
1 parent 24f1503 commit 51e7268
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion terminatorlib/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Window(Container, Gtk.Window):
title = None
isfullscreen = None
ismaximised = None
isDestroyed = False
hidebound = None
hidefunc = None
losefocus_time = 0
Expand Down Expand Up @@ -302,6 +303,7 @@ def on_destroy_event(self, widget, data=None):
terminal.close()
self.cnxids.remove_all()
self.terminator.deregister_window(self)
self.isDestroyed = True
self.destroy()
del(self)

Expand All @@ -316,7 +318,8 @@ def on_hide_window(self, data=None):
return
if self.position:
self.move(self.position[0], self.position[1])
self.show()
if(not self.isDestroyed):
self.show()
self.grab_focus()
try:
t = GdkX11.x11_get_server_time(self.get_window())
Expand Down

0 comments on commit 51e7268

Please sign in to comment.