From 0ad140c47ff5f4b793bedc724daa187478cf256a Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Sat, 18 Mar 2023 00:45:13 +0200 Subject: [PATCH] Taskbar10: Disable tablet optimized taskbar feature This fixes Task View and Win-Tab, Alt-Tab breaking after pressing Win-Tab, flyouts alignment, notification center alignment, Windows key shortcuts on OS builds 22621.1413+. Thanks @CthRio for the heads up. --- ExplorerPatcher/dllmain.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 090650e..d94bf71 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -9602,6 +9602,15 @@ struct RTL_FEATURE_CONFIGURATION { int (*RtlQueryFeatureConfigurationFunc)(UINT32 featureId, int sectionType, INT64* changeStamp, struct RTL_FEATURE_CONFIGURATION* buffer); int RtlQueryFeatureConfigurationHook(UINT32 featureId, int sectionType, INT64* changeStamp, struct RTL_FEATURE_CONFIGURATION* buffer) { int rv = RtlQueryFeatureConfigurationFunc(featureId, sectionType, changeStamp, buffer); + if (IsWindows11Version22H2Build1413OrHigher() && bOldTaskbar && featureId == 26008830) { + // Disable tablet optimized taskbar feature when using the Windows 10 taskbar + // + // For now, this fixes Task View and Win-Tab, Alt-Tab breaking after pressing Win-Tab, + // flyouts alignment, notification center alignment, Windows key shortcuts on + // OS builds 22621.1413+ + // + buffer->enabledState = FEATURE_ENABLED_STATE_DISABLED; + } return rv; } #pragma endregion