File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1222,8 +1222,14 @@ static void UpdateStartButtonPosition(const TaskbarInfo* taskBar, const WINDOWPO
1222
1222
RecreateStartButton (taskBar->taskbarId );
1223
1223
1224
1224
RECT rcTask;
1225
+ GetWindowRect (taskBar->taskBar , &rcTask);
1226
+ if (RECT rc; GetWindowRgnBox (taskBar->taskBar , &rc) != ERROR)
1227
+ {
1228
+ MapWindowPoints (taskBar->taskBar , NULL , (POINT*)&rc, 2 );
1229
+ rcTask = rc;
1230
+ }
1225
1231
MONITORINFO info;
1226
- UINT uEdge = GetTaskbarPosition (taskBar->taskBar , &info, NULL , &rcTask );
1232
+ UINT uEdge = GetTaskbarPosition (taskBar->taskBar , &info, NULL , NULL );
1227
1233
DWORD buttonFlags = SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOSIZE;
1228
1234
if (IsWindowVisible (taskBar->taskBar ))
1229
1235
buttonFlags |= SWP_SHOWWINDOW;
You can’t perform that action at this time.
0 commit comments