The branch, master has been updated via dd0a73b1844e0ce9db6d4b75e72ebe7e07faa71f (commit) from 40d727e51f5881582d3af89e57f70972f59e26d5 (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 ----------------------------------------------------------------- commit dd0a73b1844e0ce9db6d4b75e72ebe7e07faa71f Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Sat Apr 14 15:22:36 2012 +0200 fix for last commit ----------------------------------------------------------------------- Summary of changes: x2go/utils.py | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) The diff of changes is: diff --git a/x2go/utils.py b/x2go/utils.py index 5eb4561..a80e4c6 100644 --- a/x2go/utils.py +++ b/x2go/utils.py @@ -497,16 +497,18 @@ def find_session_window(session_name): else: + windows = [] + window = None + def _callback(hwnd, extra): - if win32gui.GetWindowText(hwnd) == session_name: - return hwnd - return None + if win32gui.GetWindowText(hwnd) == "X2GO-%s" % session_name: + windows.append(hwnd) + + win32gui.EnumWindows(_callback, None) + if len(windows): window = windows[0] - window = [ w for w in win32gui.EnumWindows(_callback, None) if w is not None ] - if len(window): window = window[0] return window - return None def set_session_window_title(session_window, session_title): """\ 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).