From 6a26db74655c322a8a549d9abc9e46d0271490e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20B=2E=20J=C3=B8rgensen?= Date: Tue, 13 Jul 2010 15:07:40 +0200 Subject: [PATCH] Fixed window not getting input focus when skip taskbar is set --- terminatorlib/window.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index 6b8d7cca..15a59991 100755 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -259,7 +259,7 @@ class Window(Container, gtk.Window): if self.iswithdrawn == True: if self.position: self.move(self.position[0], self.position[1]) - self.present() + self.show() else: self.position = self.get_position() self.hidefunc() @@ -347,6 +347,9 @@ 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 + self.present() + #Window must be shown, then hidden for the hotkeys to be registered if (self.ignore_startup_show and startup == True): self.hide()