From d9ba9c41cf803347612ae5e9622c33c13e43925a Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Sun, 21 Jun 2015 18:54:37 +0200 Subject: [PATCH] Small fix in get_allocation override to prevent exceptions/hung process on exiting with close button. --- terminatorlib/terminal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 54be4f4a..67466cf7 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1511,7 +1511,9 @@ class Terminal(Gtk.VBox): def get_allocation(self): """Get a real allocation which includes the bloody x and y coordinates (grumble, grumble)""" alloc = super(Terminal, self).get_allocation() - alloc.x, alloc.y = self.translate_coordinates(self.get_toplevel(), 0, 0) + rv = self.translate_coordinates(self.get_toplevel(), 0, 0) + if rv: + alloc.x, alloc.y = rv return alloc # There now begins a great list of keyboard event handlers