https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1c8cdaa470c3ebce01bc4…
commit 1c8cdaa470c3ebce01bc4079ca1252569870c861
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Wed Aug 7 21:50:25 2019 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Thu Aug 8 19:51:28 2019 +0200
[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;