When a popupmenu is currently active on the screen, it shouldn't
remove mouse click messages that don't belong to it from the queue.
This commit is contained in:
parent
7cc0e274f4
commit
4a0a7df6a3
|
@ -2636,7 +2636,10 @@ static INT MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case WM_LBUTTONDBLCLK:
|
case WM_LBUTTONDBLCLK:
|
||||||
case WM_LBUTTONDOWN:
|
case WM_LBUTTONDOWN:
|
||||||
fRemove = fEndMenu = !MENU_ButtonDown( &mt, hmenu, wFlags );
|
/* If the message belongs to the menu, removes it from the queue */
|
||||||
|
/* Else, end menu tracking */
|
||||||
|
fRemove = MENU_ButtonDown( &mt, hmenu, wFlags );
|
||||||
|
fEndMenu = !fRemove;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_RBUTTONUP:
|
case WM_RBUTTONUP:
|
||||||
|
|
Loading…
Reference in New Issue