From 6f7adcd326f3f5087f50c3681307a482465dbd96 Mon Sep 17 00:00:00 2001 From: Brandon Thetford Date: Wed, 21 Feb 2024 00:19:09 -0700 Subject: [PATCH] Move local function to end of method --- Terminal.Gui/Application.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Terminal.Gui/Application.cs b/Terminal.Gui/Application.cs index de86b2a76..8843d740f 100644 --- a/Terminal.Gui/Application.cs +++ b/Terminal.Gui/Application.cs @@ -1414,8 +1414,6 @@ public static partial class Application /// The mouse event with coordinates relative to the screen. public static void OnMouseEvent (MouseEventEventArgs a) { - static bool OutsideRect (Point p, Rectangle r) { return p.X < 0 || p.X > r.Right || p.Y < 0 || p.Y > r.Bottom; } - if (IsMouseDisabled) { return; @@ -1621,6 +1619,10 @@ public static partial class Application BringOverlappedTopToFront (); } } + + return; + + static bool OutsideRect (Point p, Rectangle r) { return p.X < 0 || p.X > r.Right || p.Y < 0 || p.Y > r.Bottom; } } #nullable restore