mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-20 23:44:10 +00:00
Fix tracking the currently highlighted item in menus when the mouse
button is not held down.
This commit is contained in:
parent
7568734411
commit
9c141d4a80
|
@ -2675,13 +2675,10 @@ static BOOL MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_MOUSEMOVE:
|
case WM_MOUSEMOVE:
|
||||||
/* In win95 winelook, the selected menu item must be changed every time the
|
/* the selected menu item must be changed every time */
|
||||||
mouse moves. In Win31 winelook, the mouse button has to be held down */
|
/* the mouse moves. */
|
||||||
|
|
||||||
if ( hmenu &&
|
|
||||||
( (msg.wParam & MK_LBUTTON) ||
|
|
||||||
((wFlags & TPM_RIGHTBUTTON) && (msg.wParam & MK_RBUTTON))) )
|
|
||||||
|
|
||||||
|
if (hmenu)
|
||||||
fEndMenu |= !MENU_MouseMove( &mt, hmenu, wFlags );
|
fEndMenu |= !MENU_MouseMove( &mt, hmenu, wFlags );
|
||||||
|
|
||||||
} /* switch(msg.message) - mouse */
|
} /* switch(msg.message) - mouse */
|
||||||
|
|
Loading…
Reference in a new issue