Merge branch 'master' of tig:migueldeicaza/gui.cs

This commit is contained in:
Charlie Kindel
2020-06-03 14:54:26 -06:00
2 changed files with 5 additions and 2 deletions

View File

@@ -264,7 +264,7 @@ namespace Terminal.Gui {
if (IsCurrentTop || this == Application.Top) {
if (NeedDisplay != null && !NeedDisplay.IsEmpty) {
Driver.SetAttribute (Colors.TopLevel.Normal);
Clear (Frame);
Clear (bounds);
Driver.SetAttribute (Colors.Base.Normal);
}
foreach (var view in Subviews) {

View File

@@ -201,7 +201,10 @@ namespace Terminal.Gui {
if (dragPosition.HasValue) {
if (SuperView == null) {
Application.Top.SetNeedsDisplay (Frame);
Application.Top.Redraw (Bounds);
// Redraw the entire app window using just our Frame. Since we are
// Application.Top, and our Frame always == our Bounds (Location is always (0,0))
// our Frame is actually view-relative (which is what Redraw takes).
Application.Top.Redraw (Frame);
} else {
SuperView.SetNeedsDisplay (Frame);
}