Reject DTTERM Window Manipulation resizes with the current size (#20183)

This may help #20182 and #20112
Closes #19310

(cherry picked from commit 3e3b3ad883)
Service-Card-Id: PVTI_lADOAF3p4s4BBcTlzgr3jGI
Service-Version: 1.24
This commit is contained in:
Dustin L. Howett
2026-05-11 17:42:18 -05:00
committed by Dustin L. Howett
parent be8fa0548d
commit b2fb072d4a

View File

@@ -107,6 +107,13 @@ bool Terminal::ResizeWindow(const til::CoordType width, const til::CoordType hei
return false;
}
const auto currentDimensions = _GetMutableViewport().Dimensions();
if (width == currentDimensions.width && height == currentDimensions.height)
{
return false;
}
if (_pfnWindowSizeChanged)
{
_pfnWindowSizeChanged(width, height);