removes force redraw on sizemonitor.poll changes; not needed.

This commit is contained in:
Tig
2025-12-03 13:56:46 -07:00
parent 83a8225dd1
commit 77e4d7749c
2 changed files with 4 additions and 4 deletions

View File

@@ -143,13 +143,13 @@ public class ApplicationMainLoop<TInputRecord> : IApplicationMainLoop<TInputReco
|| AnySubViewsNeedDrawn (App?.TopRunnableView)
|| (App?.Mouse.MouseGrabView != null && AnySubViewsNeedDrawn (App?.Mouse.MouseGrabView));
bool sizeChanged = SizeMonitor.Poll ();
SizeMonitor.Poll ();
if (needsDrawOrLayout || sizeChanged)
if (needsDrawOrLayout)
{
Logging.Redraws.Add (1);
App?.LayoutAndDraw (true);
App?.LayoutAndDraw (forceRedraw: false);
Output.Write (OutputBuffer);
}

View File

@@ -14,6 +14,6 @@ public interface ISizeMonitor
/// Examines the current size of the terminal and raises <see cref="SizeChanged"/> if it is different
/// from last inspection.
/// </summary>
/// <returns></returns>
/// <returns><see langword="true"/> if the size has changed; otherwise, <see langword="false"/>.</returns>
bool Poll ();
}