mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-27 17:00:59 +01:00
Optimize hooking of Windows key when only one monitor is connected
This commit is contained in:
parent
c850e5063a
commit
65581438d0
@ -666,7 +666,7 @@ LRESULT CALLBACK OpenStartOnCurentMonitorThreadHook(
|
||||
if (code == HC_ACTION && wParam)
|
||||
{
|
||||
MSG* msg = (MSG*)lParam;
|
||||
if (msg->message == WM_SYSCOMMAND && (msg->wParam & 0xFFF0) == SC_TASKLIST)
|
||||
if (GetSystemMetrics(SM_CMONITORS) >= 2 && msg->message == WM_SYSCOMMAND && (msg->wParam & 0xFFF0) == SC_TASKLIST)
|
||||
{
|
||||
BOOL bShouldCheckHKLM = FALSE;
|
||||
HKEY hKey;
|
||||
|
Loading…
Reference in New Issue
Block a user