[kupfer: 16/51] ui: Fix result_callback to use current display



commit 20563d665b4d56f1eeba0c11dd54b159474436f8
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Mon Mar 28 16:51:43 2011 +0200

    ui: Fix result_callback to use current display

 kupfer/ui/browser.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index f73cd97..42a0258 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -2026,7 +2026,8 @@ class WindowController (pretty.OutputMixin):
 		        screen.get_monitor_at_window(self.window.window))
 
 	def activate(self, sender=None, time=0):
-		self.present_on_display(sender, None)
+		dispname = self.window.get_screen().get_display().get_name()
+		self.present_on_display(sender, dispname)
 
 	def present_on_display(self, sender, display=None):
 		"""Present on @display, where None means default display"""



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