From 2cc15d660747c00dd57405f4fdfd65507d41dcc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Valc=C3=A1rcel?= Date: Sat, 7 Jun 2008 03:06:26 -0500 Subject: [PATCH] Focus after zooming (LP: #238046 --- terminator | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terminator b/terminator index 9deb7c08..675828fa 100755 --- a/terminator +++ b/terminator @@ -1559,6 +1559,8 @@ class Terminator: self.old_parent.remove(widget) self.window.add(widget) self._zoomed = True + index = self.term_list.index (widget) + self.term_list[index]._vte.grab_focus () def unzoom_term (self, widget): """Proof of concept: Go back to previous application @@ -1572,6 +1574,9 @@ class Terminator: self.old_parent.set_current_page(self.old_page) print "\nPARENT IS A NOTEBOOK\n" self._zoomed = False + index = self.term_list.index (widget) + self.term_list[index]._vte.grab_focus () + return else: return