Focus window after showing it via hotkey the same way Guake does it

This commit is contained in:
pas 2012-03-31 01:02:57 +04:00
parent 6f4cc90d52
commit 9b15e3033e
1 changed files with 6 additions and 0 deletions

View File

@ -273,6 +273,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()