[WIN32SS] Exclude the entire menu from overlapping, not just the menu item

CORE-15863
This commit is contained in:
Mark Jansen 2019-08-05 22:57:21 +02:00
parent 7c45a646e9
commit b5c6af459c
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -3362,12 +3362,11 @@ static PMENU FASTCALL MENU_ShowSubPopup(PWND WndOwner, PMENU Menu, BOOL SelectFi
pWnd = ValidateHwndNoErr(Menu->hWnd);
ParentRect = Rect;
if (pWnd)
/* Grab the rect of our (entire) parent menu, so we can try to not overlap it */
if (!IntGetWindowRect(pWnd, &ParentRect))
{
POINT pt = {0, 0};
IntClientToScreen(pWnd, &pt);
RECTL_vOffsetRect(&ParentRect, pt.x, pt.y);
ERR("No pWnd\n");
ParentRect = Rect;
}
/* correct item if modified as a reaction to WM_INITMENUPOPUP message */