From 17a315285ad81440fcd630bc1c0cc2275f893341 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 31 Aug 2016 02:24:14 +0000 Subject: [PATCH] [NtUser] - Fix mouse move auto selecting while tracking popup menu. See CORE-2338. svn path=/trunk/; revision=72517 --- reactos/win32ss/user/ntuser/menu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/win32ss/user/ntuser/menu.c b/reactos/win32ss/user/ntuser/menu.c index 0dc982534be..34db3d912e0 100644 --- a/reactos/win32ss/user/ntuser/menu.c +++ b/reactos/win32ss/user/ntuser/menu.c @@ -3471,7 +3471,15 @@ static BOOL FASTCALL MENU_MouseMove(MTRACKER *pmt, PMENU PtMenu, UINT Flags) if ( PtMenu ) { 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 ); }