Skip to content

Commit ea9851f

Browse files
committed
Fix tray button positioning
1 parent d9efe8c commit ea9851f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -3227,6 +3227,7 @@ static void RecreateStartButton( size_t taskbarId )
32273227
{
32283228
RECT rc;
32293229
GetWindowRect(btn,&rc);
3230+
MapWindowPoints(NULL,taskBar.taskBar,(POINT*)&rc,2); // convert to taskbar coordinates
32303231
SetWindowPos(btn,HWND_TOP,rc.left,rc.top,0,0,SWP_NOSIZE|SWP_NOACTIVATE|SWP_NOZORDER);
32313232
}
32323233
}

0 commit comments

Comments
 (0)