mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
[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:
parent
68a86a86ce
commit
e456521b94
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user