[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 0.1.1.4-194-g978b280

X2Go dev team git-admin at x2go.org
Wed Jan 8 15:30:59 CET 2014


The branch, build-baikal has been updated
       via  978b28093cac10c0b230af8d3fe71de3e8d865e0 (commit)
      from  dd0a73b1844e0ce9db6d4b75e72ebe7e07faa71f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 debian/changelog                  |    1 +
 x2go/backends/terminal/_stdout.py |    4 ++--
 x2go/utils.py                     |    7 ++++++-
 3 files changed, 9 insertions(+), 3 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 43db3b3..e7c49da 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -91,6 +91,7 @@ python-x2go (0.1.2.0-0~x2go1) UNRELEASED; urgency=low
     - Fix automatic mounting of Windows-stylish shared local folders.
     - Transform blanks in mount points into underscores.
     - Add support for renaming X2Go session windows on Windows.
+    - Add support for Windows for bringing X2Go session windows to foreground.
   * Depend on python-xlib.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Sat, 28 Sep 2012 01:44:21 +0100
diff --git a/x2go/backends/terminal/_stdout.py b/x2go/backends/terminal/_stdout.py
index dce654f..9e9b801 100644
--- a/x2go/backends/terminal/_stdout.py
+++ b/x2go/backends/terminal/_stdout.py
@@ -1181,7 +1181,7 @@ class X2goTerminalSessionSTDOUT(object):
         if self.params.session_type in ('D', 'S'):
             self.find_session_window()
             self.auto_session_window_title()
-            #self.raise_session_window()
+            self.raise_session_window()
 
         if self.params.published_applications:
             self.control_session.get_published_applications()
@@ -1261,7 +1261,7 @@ class X2goTerminalSessionSTDOUT(object):
         if self.params.session_type in ('D', 'S'):
             self.find_session_window()
             self.auto_session_window_title()
-            #self.raise_session_window()
+            self.raise_session_window()
 
         if self.is_published_applications_provider():
             self.control_session.get_published_applications()
diff --git a/x2go/utils.py b/x2go/utils.py
index a80e4c6..e367881 100644
--- a/x2go/utils.py
+++ b/x2go/utils.py
@@ -541,7 +541,12 @@ def raise_session_window(session_window):
     @type session_window: C{obj}
 
     """
-    pass
+    if _X2GOCLIENT_OS != 'Windows':
+        pass
+    else:
+        if session_window is not None:
+            win32gui.SetForegroundWindow(session_window)
+
 
 def merge_ordered_lists(l1, l2):
     """\


hooks/post-receive
-- 
python-x2go.git (Python X2Go Client API)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-x2go.git" (Python X2Go Client API).




More information about the x2go-commits mailing list