From 01c07ddc9ef35efbc78b437ccbe0707a9dd9620c Mon Sep 17 00:00:00 2001 From: BDisp Date: Sat, 26 Dec 2020 13:56:30 +0000 Subject: [PATCH] Fixes #1056. Window doesn't redraw his SuperView properly. --- Terminal.Gui/Core/Window.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Terminal.Gui/Core/Window.cs b/Terminal.Gui/Core/Window.cs index 00197567e..8ced76cc9 100644 --- a/Terminal.Gui/Core/Window.cs +++ b/Terminal.Gui/Core/Window.cs @@ -196,12 +196,8 @@ namespace Terminal.Gui { // Checks if there are any SuperView view which intersect with this window. if (SuperView != null) { - foreach (var view in SuperView.Subviews) { - if (view != this && view.Frame.IntersectsWith (Bounds)) { - view.SetNeedsLayout (); - view.SetNeedsDisplay (view.Bounds); - } - } + SuperView.SetNeedsLayout (); + SuperView.SetNeedsDisplay (); } }