only prevent faulty reappearing when hide_on_lose_focus is enabled

This commit is contained in:
Peter B. Jørgensen 2010-07-15 16:42:31 +02:00
parent b30197de06
commit 89230457a1

View File

@ -263,8 +263,9 @@ class Window(Container, gtk.Window):
if not self.get_property('visible'):
#Don't show if window has just been hidden because of
#e.g. lost focus
if time.time() - self.losefocus_time < 0.1:
#lost focus
if (time.time() - self.losefocus_time < 0.1) and \
self.config['hide_on_lose_focus']:
return
if self.position:
self.move(self.position[0], self.position[1])