mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Merge branch 'master' of tig:migueldeicaza/gui.cs
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user