Browse Source

Inline this

No need to copy it
Brandon Thetford 1 year ago
parent
commit
f8574ba295
1 changed files with 3 additions and 5 deletions
  1. 3 5
      Terminal.Gui/Application.cs

+ 3 - 5
Terminal.Gui/Application.cs

@@ -1128,17 +1128,15 @@ public static partial class Application
     #nullable enable
     #nullable enable
     private static View? FindDeepestTop (Toplevel start, int x, int y)
     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;
             return null;
         }
         }
 
 
         if (_topLevels is { Count: > 0 })
         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)
             foreach (Toplevel t in _topLevels)
             {
             {