From 1c8cdaa470c3ebce01bc4079ca1252569870c861 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Wed, 7 Aug 2019 21:50:25 +0200 Subject: [PATCH] [WIN32SS] Fix tray popup menus stuck to the bottom of the screen Dedicated to Joachim CORE-16297 --- win32ss/user/ntuser/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32ss/user/ntuser/menu.c b/win32ss/user/ntuser/menu.c index cc628162aee..a4e76511431 100644 --- a/win32ss/user/ntuser/menu.c +++ b/win32ss/user/ntuser/menu.c @@ -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;