mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-23 23:21:08 +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)
|
if (code == HC_ACTION && wParam)
|
||||||
{
|
{
|
||||||
MSG* msg = (MSG*)lParam;
|
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;
|
BOOL bShouldCheckHKLM = FALSE;
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
@ -999,4 +999,4 @@ BOOL WINAPI DllMain(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user