Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,16 @@ private void SetWindowPosition()
{
try
{
// During the reentrant Hide -> Activate -> BringToFront chain triggered from
// section selection, this window's own AppWindow can briefly be null. Any WinUIEx
// size access below (e.g. MaxHeight -> get_Height) would dereference it and throw an
// NRE from inside WinUIEx (issue #48773). Skip this pass and keep the previous layout;
// a later AppWindow.Changed / Activated event reruns this once the window settles.
if (AppWindow is null)
{
return;
}

if (!this._hasMovedToRightMonitor)
{
NativeMethods.GetCursorPos(out NativeMethods.POINT lpPoint);
Expand Down
Loading