commit 25fe7c42713b9f44af75864e94362ad7463ed78b
parent c7f06c1d73d244215e40c80969c4f0c7af9acd11
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date: Mon, 8 Dec 2025 15:00:50 +0000
Bug 2004018 - Allow the Windows App SDK to handle WM_WINDOWPOSCHANGED. r=gstoll,win-reviewers
Otherwise we might end up with a mispositioned child window that it uses
internally to handle non-client events.
Differential Revision: https://phabricator.services.mozilla.com/D275357
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp
@@ -5704,7 +5704,8 @@ bool nsWindow::ProcessMessageInternal(UINT msg, WPARAM& wParam, LPARAM& lParam,
WINDOWPOS* wp = (LPWINDOWPOS)lParam;
OnWindowPosChanged(wp);
TaskbarConcealer::OnWindowPosChanged(this);
- result = true;
+ // We don't set result = true here so that the Windows app sdk
+ // can process this message if necessary.
} break;
case WM_INPUTLANGCHANGEREQUEST: