From 8d426d1d68a29352cd96f54985731b0e929adab7 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Thu, 19 Dec 2013 23:51:30 +0100 Subject: [PATCH 1/2] Remove the unnecessary cruft left over in the windows on_focus_in related to terminal focus --- terminatorlib/window.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index 2cb6f67e..be4081c4 100755 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -242,14 +242,6 @@ class Window(Container, gtk.Window): """Focus has entered the window""" self.set_urgency_hint(False) term = None - if self.is_child_notebook(): - # TODO: Will need some code for the tabs active terms to work - pass - else: - if isinstance(self.last_active_term, uuid.UUID): - term = self.terminator.find_terminal_by_uuid(self.last_active_term.urn) - if term: - gobject.idle_add(term.ensure_visible_and_focussed) if not self.terminator.doing_layout: self.terminator.last_active_window = self.uuid # FIXME: Cause the terminal titlebars to update here From 8426fab93595006830ba3818a4259fb2914fd16b Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Tue, 21 Jan 2014 23:41:37 +0100 Subject: [PATCH 2/2] Missed a line in the cruft removal --- terminatorlib/window.py | 1 - 1 file changed, 1 deletion(-) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index be4081c4..2a20a3bd 100755 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -241,7 +241,6 @@ class Window(Container, gtk.Window): def on_focus_in(self, window, event): """Focus has entered the window""" self.set_urgency_hint(False) - term = None if not self.terminator.doing_layout: self.terminator.last_active_window = self.uuid # FIXME: Cause the terminal titlebars to update here