mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 07:47:54 +01:00
removes force redraw on sizemonitor.poll changes; not needed.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user