From 9fd65d2a4ed6843527c8bd562f95e69b724fd5b7 Mon Sep 17 00:00:00 2001 From: Andrea Corbellini Date: Wed, 10 Oct 2012 18:37:30 +0200 Subject: [PATCH] Really bring new windows to front, even when terminator does not have the focus --- terminatorlib/window.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index bd2f52d6..72f7845b 100755 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -373,8 +373,10 @@ class Window(Container, gtk.Window): def show(self, startup=False): """Undo the startup show request if started in hidden mode""" - gtk.Window.show(self) - #Present is necessary to grab focus when window is hidden from taskbar + #Present is necessary to grab focus when window is hidden from taskbar. + #It is important to call present() before show(), otherwise the window + #won't be brought to front if an another application has the focus. + #Last note: present() will implicitly call gtk.Window.show() self.present() #Window must be shown, then hidden for the hotkeys to be registered