All usages discard these

Remove them
This commit is contained in:
Brandon Thetford
2024-02-21 00:05:25 -07:00
parent ce78e3af4a
commit c1c4c77955

View File

@@ -1125,15 +1125,12 @@ public static partial class Application
}
}
private static View FindDeepestTop (Toplevel start, int x, int y, out int resx, out int resy)
private static View FindDeepestTop (Toplevel start, int x, int y)
{
Rectangle startFrame = start.Frame;
if (!startFrame.Contains (x, y))
{
resx = 0;
resy = 0;
return null;
}
@@ -1156,9 +1153,6 @@ public static partial class Application
}
}
resx = x - startFrame.X;
resy = y - startFrame.Y;
return start;
}
@@ -1488,7 +1482,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, out _, out _);
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)