From 109a8496ee6b4a70994fc55663e1b9e2407a0267 Mon Sep 17 00:00:00 2001 From: BDisp Date: Thu, 19 Nov 2020 21:31:53 +0000 Subject: [PATCH] Fixes #1016. Window is drawing its frame over the menu. --- Terminal.Gui/Core/Window.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Terminal.Gui/Core/Window.cs b/Terminal.Gui/Core/Window.cs index 82ac8b804..00197567e 100644 --- a/Terminal.Gui/Core/Window.cs +++ b/Terminal.Gui/Core/Window.cs @@ -193,6 +193,16 @@ namespace Terminal.Gui { Driver.SetAttribute (ColorScheme.HotNormal); Driver.DrawWindowTitle (scrRect, Title, padding, padding, padding, padding); Driver.SetAttribute (ColorScheme.Normal); + + // 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); + } + } + } } //