[FancyZones] fix for secondary mouse button (#8901)

primary mouse button switch is transparent to the application
the system still returns the same values as for the default case
This commit is contained in:
Enrico Giordani
2021-01-04 12:09:58 +01:00
committed by GitHub
parent 68a86a86ce
commit e456521b94

View File

@@ -43,7 +43,7 @@ LRESULT CALLBACK SecondaryMouseButtonsHook::SecondaryMouseButtonsProc(int nCode,
{
if (nCode == HC_ACTION)
{
if (wParam == (GetSystemMetrics(SM_SWAPBUTTON) ? WM_LBUTTONDOWN : WM_RBUTTONDOWN) || wParam == WM_MBUTTONDOWN || wParam == WM_XBUTTONDOWN)
if (wParam == WM_RBUTTONDOWN || wParam == WM_MBUTTONDOWN || wParam == WM_XBUTTONDOWN)
{
callback();
}