From e9deb280c421e0e8b9c7097c399dc4fb7d25e9f9 Mon Sep 17 00:00:00 2001 From: Brandon Thetford Date: Wed, 21 Feb 2024 02:38:41 -0700 Subject: [PATCH] Mark these nullable --- Terminal.Gui/Application.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Terminal.Gui/Application.cs b/Terminal.Gui/Application.cs index e6b2eec66..82180242c 100644 --- a/Terminal.Gui/Application.cs +++ b/Terminal.Gui/Application.cs @@ -1172,7 +1172,7 @@ public static partial class Application #nullable enable // Only return true if the Current has changed. - private static bool MoveCurrent (Toplevel top) + private static bool MoveCurrent (Toplevel? top) { // The Current is modal and the top is not modal Toplevel then // the Current must be moved above the first not modal Toplevel. @@ -1483,7 +1483,7 @@ public static partial class Application && a.MouseEvent.Flags != MouseFlags.ReportMousePosition && a.MouseEvent.Flags != 0) { - View top = FindDeepestTop (Top, a.MouseEvent.X, a.MouseEvent.Y); + View? top = FindDeepestTop (Top, a.MouseEvent.X, a.MouseEvent.Y); view = View.FindDeepestView (top, a.MouseEvent.X, a.MouseEvent.Y, out screenX, out screenY); if (view is { } && view != OverlappedTop && top != Current)