From 77d526a7c18c33c7afe2c53df585f304b88f21ed Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Mon, 6 Dec 2021 19:21:14 +0200 Subject: [PATCH] Mitigation for #516 --- CHANGELOG.md | 1 + ExplorerPatcher/dllmain.c | 2 +- version.h | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cd60c0..43aa7fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ Tested on build 22000.348. * Fixed regression of [#161](https://github.com/valinet/ExplorerPatcher/issues/161#issuecomment-986234002) (.1) * Possibility to disable per-application window lists (`Alt`+`) ([#283](https://github.com/valinet/ExplorerPatcher/issues/283#issuecomment-986261712)) (.2) * Fixed bug that prevented proper loading of default settings (.3) +* Implemented a mitigation for #516: gestures for switching apps on Windows Precision Touchpad devices trigger the Windows 10 switcher instead of the Windows 11 switcher, which is much closer to how Simple Window Switcher looks and behaves; ideally, a full solution for this should be provided in the future, in the form of support for activation and navigation using Windows Precision Touchpad gestures in the Simple Window Switcher (.5) ## 22000.348.39 diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 51858a7..14a6cb0 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -5297,7 +5297,7 @@ DWORD InjectBasicFunctions(BOOL bIsExplorer, BOOL bInstall) INT64(*twinui_pcshell_IsUndockedAssetAvailableFunc)(INT a1, INT64 a2, INT64 a3, const char* a4); INT64 twinui_pcshell_IsUndockedAssetAvailableHook(INT a1, INT64 a2, INT64 a3, const char* a4) { - if (dwAltTabSettings == 3) + if (dwAltTabSettings == 3 || dwAltTabSettings == 2) { return 0; } diff --git a/version.h b/version.h index 77dfef7..ad106f4 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define VER_MAJOR 22000 #define VER_MINOR 348 #define VER_BUILD_HI 40 -#define VER_BUILD_LO 4 +#define VER_BUILD_LO 5 #define VER_FLAGS VS_FF_PRERELEASE @@ -12,5 +12,5 @@ #define VER_STR(arg) #arg // The String form of the version numbers -#define VER_FILE_STRING VALUE "FileVersion", "22000.348.40.4" -#define VER_PRODUCT_STRING VALUE "ProductVersion", "22000.348.40.4" +#define VER_FILE_STRING VALUE "FileVersion", "22000.348.40.5" +#define VER_PRODUCT_STRING VALUE "ProductVersion", "22000.348.40.5"