From f8574ba295e6543c8a7a9199255e044136f9a526 Mon Sep 17 00:00:00 2001 From: Brandon Thetford Date: Wed, 21 Feb 2024 00:14:47 -0700 Subject: [PATCH] Inline this No need to copy it --- Terminal.Gui/Application.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Terminal.Gui/Application.cs b/Terminal.Gui/Application.cs index 3e2ebfd41..61f76b7ea 100644 --- a/Terminal.Gui/Application.cs +++ b/Terminal.Gui/Application.cs @@ -1128,17 +1128,15 @@ public static partial class Application #nullable enable private static View? FindDeepestTop (Toplevel start, int x, int y) { - Rectangle startFrame = start.Frame; - - if (!startFrame.Contains (x, y)) + if (!start.Frame.Contains (x, y)) { return null; } if (_topLevels is { Count: > 0 }) { - int rx = x - startFrame.X; - int ry = y - startFrame.Y; + int rx = x - start.Frame.X; + int ry = y - start.Frame.Y; foreach (Toplevel t in _topLevels) {