commit 0df0bf13337f9a21e29b0366fdb9fd925dd88eec
parent d90faf32c738e4c57b8c7a1e58d9c3d3329bcb14
Author: Greg Stoll <gstoll@mozilla.com>
Date: Wed, 22 Oct 2025 21:45:52 +0000
Bug 1995838 - don't use Windows App SDK on PiP windows r=win-reviewers,handyman
This was making the fullscreened picture-in-picture windows go under the
Windows taskbar.
Differential Revision: https://phabricator.services.mozilla.com/D269673
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp
@@ -2838,7 +2838,11 @@ void nsWindow::SetCustomTitlebar(bool aCustomTitlebar) {
mCustomNonClientMetrics = {};
ResetLayout();
}
- WindowsUIUtils::SetIsTitlebarCollapsed(mWnd, mCustomNonClient);
+ // Not needed for PiP windows, and using the Windows App SDK on
+ // these windows causes them to go under the taskbar (bug 1995838)
+ if (!mPIPWindow) {
+ WindowsUIUtils::SetIsTitlebarCollapsed(mWnd, mCustomNonClient);
+ }
}
void nsWindow::SetResizeMargin(mozilla::LayoutDeviceIntCoord aResizeMargin) {