Skip to content
Open
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 @@ -1517,7 +1517,10 @@ private void CreateWindow(bool asyncCall)
// This ensures that a recycled HWND that is moving from one display
// to another does not undergo a WM_DPICHANGED event and thus cause a
// cascading failure.
if (PopupInitialPlacementHelper.IsPerMonitorDpiScalingActive)
// Also create a new window if the popup animation is set to Fade,
// otherwise reusing the same window will interrupt the fade-out animation,
// causing together with the call to SetWindowPos a brief flicker instead of smooth fade-in.
if (PopupInitialPlacementHelper.IsPerMonitorDpiScalingActive || PopupAnimation is PopupAnimation.Fade)
{
DestroyWindowImpl();
_positionInfo = null;
Expand Down