mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[NTUSER] Fix system menu mouse handing (#5822)
Add a check for the system menu opened from the app icon. Fixes CORE-19258
This commit is contained in:
parent
c1b12b3f46
commit
64997887eb
|
@ -3555,7 +3555,9 @@ static BOOL FASTCALL MENU_ButtonDown(MTRACKER* pmt, PMENU PtMenu, UINT Flags)
|
||||||
{
|
{
|
||||||
UINT id = 0;
|
UINT id = 0;
|
||||||
PITEM item;
|
PITEM item;
|
||||||
if (IS_SYSTEM_MENU(PtMenu))
|
|
||||||
|
// Special check for the icon system menu
|
||||||
|
if (IS_SYSTEM_MENU(PtMenu) && !(PtMenu->fFlags & MNF_POPUP))
|
||||||
{
|
{
|
||||||
item = PtMenu->rgItems;
|
item = PtMenu->rgItems;
|
||||||
}
|
}
|
||||||
|
@ -3599,7 +3601,8 @@ static INT FASTCALL MENU_ButtonUp(MTRACKER *pmt, PMENU PtMenu, UINT Flags)
|
||||||
UINT Id = 0;
|
UINT Id = 0;
|
||||||
ITEM *item;
|
ITEM *item;
|
||||||
|
|
||||||
if ( IS_SYSTEM_MENU(PtMenu) )
|
// Special check for the icon system menu
|
||||||
|
if (IS_SYSTEM_MENU(PtMenu) && !(PtMenu->fFlags & MNF_POPUP))
|
||||||
{
|
{
|
||||||
item = PtMenu->rgItems;
|
item = PtMenu->rgItems;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue