Skip to content

Commit

Permalink
Fix tray button positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0rdi committed Jan 26, 2025
1 parent aba85f6 commit 39dc75a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 39dc75a

Please sign in to comment.