From e0a90ab67017fdf1af268e7fee993fc9eef6bcdf Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Wed, 4 Sep 2013 23:02:24 +0200 Subject: [PATCH] Fix lack of focus on unhide with patch from Pavel Khlebovich. Closes LP#805870 --- terminatorlib/window.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index d8296077..a9089b2a 100755 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -304,6 +304,12 @@ class Window(Container, gtk.Window): if self.position: self.move(self.position[0], self.position[1]) self.show() + self.grab_focus() + try: + t = gtk.gdk.x11_get_server_time(self.window) + except AttributeError: + t = 0 + self.window.focus(t) else: self.position = self.get_position() self.hidefunc()