[kupfer] browser: Use idle callback to hide the window after activate



commit 17768535a968ac37feb02314d073661440320c42
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Wed Dec 23 22:38:31 2009 +0100

    browser: Use idle callback to hide the window after activate
    
    Using .idle_add() instead of a .timeout_add mitigates the window
    blanking bug, https://bugs.launchpad.net/kupfer/+bug/494237 reported by
    Vadim, in important cases.

 kupfer/browser.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/browser.py b/kupfer/browser.py
index a52654b..4df0755 100644
--- a/kupfer/browser.py
+++ b/kupfer/browser.py
@@ -1391,7 +1391,7 @@ class WindowController (pretty.OutputMixin):
 		# Separate window hide from the action being
 		# done. This is to solve a window focus bug when
 		# we switch windows using an action
-		gobject.timeout_add(50,self.put_away)
+		gobject.idle_add(self.put_away)
 
 	def activate(self, sender=None, time=0):
 		evttime = time if time else gtk.get_current_event_time()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]