[NtUser]
authorJames Tabor <james.tabor@reactos.org>
Wed, 31 Aug 2016 02:24:14 +0000 (02:24 +0000)
committerJames Tabor <james.tabor@reactos.org>
Wed, 31 Aug 2016 02:24:14 +0000 (02:24 +0000)
- Fix mouse move auto selecting while tracking popup menu. See CORE-2338.

svn path=/trunk/; revision=72517

reactos/win32ss/user/ntuser/menu.c

index 0dc9825..34db3d9 100644 (file)
@@ -3471,7 +3471,15 @@ static BOOL FASTCALL MENU_MouseMove(MTRACKER *pmt, PMENU PtMenu, UINT Flags)
   if ( PtMenu )
   {
       if (IS_SYSTEM_MENU(PtMenu))
   if ( PtMenu )
   {
       if (IS_SYSTEM_MENU(PtMenu))
+      {
           Index = 0;
           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 );
   }
       else
           MENU_FindItemByCoords( PtMenu, pmt->Pt, &Index );
   }