瀏覽代碼

Inline this

No need to copy it
Brandon Thetford 1 年之前
父節點
當前提交
f8574ba295
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. 3 5
      Terminal.Gui/Application.cs

+ 3 - 5
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)
             {