Browse Source

All: Fixed clock and hotkey not invoking action center on Windows 10; fixed sws close button misalignment on Windows 10

pull/899/head 22000.493.42.16_6e21fa7
Valentin Radu 4 years ago
parent
commit
6e21fa70e3
  1. 11
      ExplorerPatcher/dllmain.c
  2. 12
      ExplorerPatcher/settings10.reg
  3. 2
      libs/sws

11
ExplorerPatcher/dllmain.c

@ -1968,7 +1968,7 @@ INT64 Shell_TrayWndSubclassProc(
ToggleTaskbarAutohide(); ToggleTaskbarAutohide();
return 0; return 0;
} }
else if (uMsg == WM_HOTKEY && wParam == 500 && lParam == MAKELPARAM(MOD_WIN, 0x41)) else if (uMsg == WM_HOTKEY && wParam == 500 && lParam == MAKELPARAM(MOD_WIN, 0x41) && IsWindows11())
{ {
InvokeActionCenter(); InvokeActionCenter();
return 0; return 0;
@ -2279,7 +2279,14 @@ INT64 ClockButtonSubclassProc(
{ {
if (FindWindowW(L"Windows.UI.Core.CoreWindow", NULL)) if (FindWindowW(L"Windows.UI.Core.CoreWindow", NULL))
{ {
ToggleNotificationsFlyout(); if (IsWindows11())
{
ToggleNotificationsFlyout();
}
else
{
ToggleActionCenter();
}
} }
return 1; return 1;
} }

12
ExplorerPatcher/settings10.reg

@ -25,12 +25,15 @@
;x 0 Left ;x 0 Left
;x 2 Right ;x 2 Right
;"Virtualized_{D17F1E1A-5919-4427-8F89-A1A8503CA3EB}_MMTaskbarPosition"=dword:00000003 ;"Virtualized_{D17F1E1A-5919-4427-8F89-A1A8503CA3EB}_MMTaskbarPosition"=dword:00000003
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search]
;c 3 Search
;x 0 Hidden
;x 1 Show search icon
;x 2 Show search box
"SearchboxTaskbarMode"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;b Show Cortana button ;b Show Cortana button
"ShowCortanaButton"=dword:00000000 "ShowCortanaButton"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search]
;b Show Search button
"SearchboxTaskbarMode"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;b Show Task view button ;b Show Task view button
"ShowTaskViewButton"=dword:00000001 "ShowTaskViewButton"=dword:00000001
@ -107,9 +110,10 @@
;x 0 Windows 7 flyout ;x 0 Windows 7 flyout
"EnableMtcUvc"=dword:00000001 "EnableMtcUvc"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell]
;c 2 Clock ;c 3 Clock
;x 0 Windows 10 flyout (default) ;x 0 Windows 10 flyout (default)
;x 1 Windows 7 ;x 1 Windows 7
;x 2 Action Center
"UseWin32TrayClockExperience"=dword:00000000 "UseWin32TrayClockExperience"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell]
;c 2 Battery ;c 2 Battery

2
libs/sws

@ -1 +1 @@
Subproject commit e6ac14f701589351d6c242c13235ad026a99e327 Subproject commit 6fdceae19a8f4339cd59618b3bbd35dac574ac34
Loading…
Cancel
Save