mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Don't change button state on WM_MOUSEMOVE messages unless left mouse
button is pressed.
This commit is contained in:
parent
93ece68077
commit
0e4cf6c083
@ -279,7 +279,7 @@ static LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
|
||||
break;
|
||||
|
||||
case WM_MOUSEMOVE:
|
||||
if (GetCapture() == hWnd)
|
||||
if ((wParam & MK_LBUTTON) && GetCapture() == hWnd)
|
||||
{
|
||||
GetClientRect( hWnd, &rect );
|
||||
SendMessageW( hWnd, BM_SETSTATE, PtInRect(&rect, pt), 0 );
|
||||
|
Loading…
Reference in New Issue
Block a user