diff --git a/CHANGELOG.md b/CHANGELOG.md index 692c1e4..ad32361 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Tested on build 22000.318 and 22000.346 (currently in Windows Insider beta and r * Taskbar toolbar layouts are preserved when switching between Windows 10 and Windows 11 taskbars and in general (these will be reset when installing this update but should be subsequently remembered) (#395) (.2) * Implemented option to toggle taskbar auto-hide when double clicking the main taskbar (#389) (.3) * Running `ep-setup.exe` again while EP is already installed will now update the program to the latest version. To uninstall, as the previous behavior did, run `ep_setup.exe /uninstall` (.4) +* Implemented absolute height and width parameters for the Windows 10 switcher. These are especially useful for ultra wide monitors, in a scenario similar to the one described in [this post](https://github.com/valinet/ExplorerPatcher/discussions/110#discussioncomment-1673007) - to configure, set `MaxWidthAbs` and/or `MaxHeightAbs` DWORD values in `HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ExplorerPatcher\sws` (#110) (.5) #### Feature enhancements diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index b0d3369..24795f2 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -3314,6 +3314,24 @@ void sws_ReadSettings(sws_WindowSwitcher* sws) &(sws->bPerMonitor), &dwSize ); + dwSize = sizeof(DWORD); + RegQueryValueExW( + hKey, + TEXT("MaxWidthAbs"), + 0, + NULL, + &(sws->dwMaxAbsoluteWP), + &dwSize + ); + dwSize = sizeof(DWORD); + RegQueryValueExW( + hKey, + TEXT("MaxHeightAbs"), + 0, + NULL, + &(sws->dwMaxAbsoluteHP), + &dwSize + ); if (sws) { sws_WindowSwitcher_RefreshTheme(sws); diff --git a/libs/sws b/libs/sws index b40b703..d12b6f3 160000 --- a/libs/sws +++ b/libs/sws @@ -1 +1 @@ -Subproject commit b40b703d66d7b8c3496919dc6ef2e9e8ca678802 +Subproject commit d12b6f3c4bfc5841c49c4541a44db59d952d05a9 diff --git a/version.h b/version.h index 4eefa44..89bcec5 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define VER_MAJOR 22000 #define VER_MINOR 318 #define VER_BUILD_HI 38 -#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.318.38.4" -#define VER_PRODUCT_STRING VALUE "ProductVersion", "22000.318.38.4" +#define VER_FILE_STRING VALUE "FileVersion", "22000.318.38.5" +#define VER_PRODUCT_STRING VALUE "ProductVersion", "22000.318.38.5"