[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-08 19:51:28 +02:00
parent 33f77af348
commit 1c8cdaa470
+1 -1
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;