From 39dc75aabea853895814b7f6b88f8ae42307d47e Mon Sep 17 00:00:00 2001 From: ge0rdi Date: Sun, 19 Jan 2025 11:00:31 +0100 Subject: [PATCH] Fix tray button positioning --- Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp b/Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp index a660d0c94..9f26f2284 100644 --- a/Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp +++ b/Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp @@ -3230,6 +3230,7 @@ static void RecreateStartButton( size_t taskbarId ) { RECT rc; GetWindowRect(btn,&rc); + MapWindowPoints(NULL,taskBar.taskBar,(POINT*)&rc,2); // convert to taskbar coordinates SetWindowPos(btn,HWND_TOP,rc.left,rc.top,0,0,SWP_NOSIZE|SWP_NOACTIVATE|SWP_NOZORDER); } }