From 19834620e650248d15324d69dc514c43302916cb Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Fri, 10 Dec 2021 00:03:12 +0200 Subject: [PATCH] sws window padding is configurable --- ExplorerPatcher/dllmain.c | 9 +++++++++ ExplorerPatcher/settings.reg | 13 +++++++++++++ libs/sws | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 14a6cb0..359f672 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -3434,6 +3434,15 @@ void sws_ReadSettings(sws_WindowSwitcher* sws) &(sws->bNoPerApplicationList), &dwSize ); + dwSize = sizeof(DWORD); + RegQueryValueExW( + hKey, + TEXT("MasterPadding"), + 0, + NULL, + &(sws->dwMasterPadding), + &dwSize + ); if (sws->bIsInitialized) { sws_WindowSwitcher_UnregisterHotkeys(sws); diff --git a/ExplorerPatcher/settings.reg b/ExplorerPatcher/settings.reg index dae46f0..e529eb7 100644 --- a/ExplorerPatcher/settings.reg +++ b/ExplorerPatcher/settings.reg @@ -315,6 +315,19 @@ ;x 60 60 % ;x 55 55 % "MaxHeight"=dword:00000050 +;c 11 Window padding +;x 50 50 pt +;x 45 45 pt +;x 40 40 pt (default) +;x 35 30 pt +;x 30 30 pt +;x 25 25 pt +;x 20 20 pt +;x 15 15 pt +;x 10 10 pt +;x 5 5 pt +;x 0 None +"MasterPadding"=dword:00000028 ;c 11 Show delay ;x 0 None ;x 25 25 ms diff --git a/libs/sws b/libs/sws index 5554617..c36c3be 160000 --- a/libs/sws +++ b/libs/sws @@ -1 +1 @@ -Subproject commit 5554617cb058e2c66fbdac898557697d61b7516c +Subproject commit c36c3be8a4f15c9ac7a6326ee395a4f5411f8c55