[kupfer: 19/51] uievents: Fix get_display() (this makes Thunar use the right display)



commit 57fb226a317a9648c3b16143a560950935799e0d
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Mon Mar 28 16:51:44 2011 +0200

    uievents: Fix get_display() (this makes Thunar use the right display)

 kupfer/ui/uievents.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/ui/uievents.py b/kupfer/ui/uievents.py
index 336bb98..219daff 100644
--- a/kupfer/ui/uievents.py
+++ b/kupfer/ui/uievents.py
@@ -53,8 +53,7 @@ class GUIEnvironmentContext (object):
 
 		Always returns a byte string
 		"""
-		# FIXME: use Kupfer window's display
-		return os.getenv("DISPLAY", ":0")
+		return self._screen.get_display().get_name()
 	def get_screen(self):
 		return self._screen
 	def present_window(self, window):



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