From a610012fb44b4dcafc0a27739876adb857f7e1dd Mon Sep 17 00:00:00 2001 From: jerry Date: Wed, 30 Oct 2013 13:49:40 +0000 Subject: [PATCH] patch by Jack Zhou and Henry Tung to fix alt tab not working on windows 8 (Issue# 3338). --- src/lib/platform/CMSWindowsWatchdog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/platform/CMSWindowsWatchdog.cpp b/src/lib/platform/CMSWindowsWatchdog.cpp index dda946ff..f34c8686 100644 --- a/src/lib/platform/CMSWindowsWatchdog.cpp +++ b/src/lib/platform/CMSWindowsWatchdog.cpp @@ -266,6 +266,12 @@ CMSWindowsWatchdog::startProcess() HANDLE userToken = getUserToken(&sa); + // patch by Jack Zhou and Henry Tung + // set UIAccess to fix Windows 8 GUI interaction + // http://synergy-foss.org/spit/issues/details/3338/#c70 + DWORD uiAccess = 1; + SetTokenInformation(userToken, TokenUIAccess, &uiAccess, sizeof(DWORD)); + // clear, as we're reusing process info struct ZeroMemory(&m_processInfo, sizeof(PROCESS_INFORMATION));