mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 22:49:12 +00:00
[NTUSER] Remove a wrong check in MENU_MouseMove (#5736)
This check doesn't seem to be correct in modern ReactOS. Furthermore, it
actually hadn't been working for a long time until it was uncovered by
the recent system menu changes.
Reverts a hack introduced in 17a315285
(r72517), fixes CORE-19170.
The initial bug described in CORE-2338 is not observed.
This commit is contained in:
parent
13a145b6d8
commit
e2d3aa7f4a
1 changed files with 1 additions and 14 deletions
|
@ -3683,20 +3683,7 @@ static BOOL FASTCALL MENU_MouseMove(MTRACKER *pmt, PMENU PtMenu, UINT Flags)
|
||||||
UINT Index = NO_SELECTED_ITEM;
|
UINT Index = NO_SELECTED_ITEM;
|
||||||
|
|
||||||
if ( PtMenu )
|
if ( PtMenu )
|
||||||
{
|
MENU_FindItemByCoords( PtMenu, pmt->Pt, &Index );
|
||||||
if (IS_SYSTEM_MENU(PtMenu))
|
|
||||||
{
|
|
||||||
Index = 0;
|
|
||||||
//// ReactOS only HACK: CORE-2338
|
|
||||||
// Windows tracks mouse moves to the system menu but does not open it.
|
|
||||||
// Only keyboard tracking can do that.
|
|
||||||
//
|
|
||||||
TRACE("SystemMenu\n");
|
|
||||||
return TRUE; // Stay inside the Loop!
|
|
||||||
}
|
|
||||||
else
|
|
||||||
MENU_FindItemByCoords( PtMenu, pmt->Pt, &Index );
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Index == NO_SELECTED_ITEM)
|
if (Index == NO_SELECTED_ITEM)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue