[WIN32SS] Fix tray popup menus stuck to the bottom of the screen

Dedicated to Joachim
CORE-16297
This commit is contained in:
Mark Jansen 2019-08-07 21:50:25 +02:00
parent 33f77af348
commit 1c8cdaa470
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -3027,7 +3027,7 @@ static BOOL FASTCALL MENU_ShowPopup(PWND pwndOwner, PMENU menu, UINT id, UINT fl
/* And the bottom */
if (y + height > monitor->rcMonitor.bottom)
{
if ((y - height) < monitor->rcMonitor.top || y >= monitor->rcMonitor.bottom || bIsPopup)
if ((y - height) < monitor->rcMonitor.top || y >= monitor->rcMonitor.bottom)
y = monitor->rcMonitor.bottom - height;
else
y -= height;