mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-11 17:37:22 +10:00
Set position of tray buttons on primary taskbar only
It seems that secondary taskbars handle try button positioning
correctly. So there is no need for this workaround.
Original change was introduced in 674a486 due to #1232 issue.
This commit is contained in:
@@ -3179,6 +3179,8 @@ static void RecreateStartButton( size_t taskbarId )
|
||||
RECT rcTask;
|
||||
GetWindowRect(taskBar.taskBar,&rcTask);
|
||||
PostMessage(taskBar.taskBar,WM_SIZE,SIZE_RESTORED,MAKELONG(rcTask.right-rcTask.left,rcTask.bottom-rcTask.top));
|
||||
if (taskBar.taskBar==g_TaskBar)
|
||||
{
|
||||
for (auto btn : taskBar.trayButtons)
|
||||
{
|
||||
RECT rc;
|
||||
@@ -3186,6 +3188,7 @@ static void RecreateStartButton( size_t taskbarId )
|
||||
SetWindowPos(btn,HWND_TOP,rc.left,rc.top,0,0,SWP_NOSIZE|SWP_NOACTIVATE|SWP_NOZORDER);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static DWORD WINAPI ExitThreadProc( void *param )
|
||||
|
||||
Reference in New Issue
Block a user