Fix remaining bugs and issues with PiP

This commit is contained in:
wuggy 2026-09-13 13:02:36 -07:00
commit 27af37ea7b
3 changed files with 24 additions and 5 deletions

View file

@ -3207,6 +3207,12 @@ NS_IMETHODIMP nsWindow::HideWindowChrome(bool aShouldHide)
::SetWindowLongPtrW(hwnd, GWL_STYLE, style);
::SetWindowLongPtrW(hwnd, GWL_EXSTYLE, exStyle);
// Apply the new non-client metrics immediately. Otherwise the client area
// keeps its old titlebar/border dimensions until the first move or resize.
::SetWindowPos(hwnd, nullptr, 0, 0, 0, 0,
SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE |
SWP_NOZORDER | SWP_NOACTIVATE);
return NS_OK;
}