diff --git a/Flow.Launcher.Infrastructure/Win32Helper.cs b/Flow.Launcher.Infrastructure/Win32Helper.cs index a2d37a2f0..b5b89e2d1 100644 --- a/Flow.Launcher.Infrastructure/Win32Helper.cs +++ b/Flow.Launcher.Infrastructure/Win32Helper.cs @@ -126,7 +126,7 @@ namespace Flow.Launcher.Infrastructure public static bool IsForegroundWindow(Window window) { - return GetWindowHandle(window).Equals(PInvoke.GetForegroundWindow()); + return IsForegroundWindow(GetWindowHandle(window)); } internal static bool IsForegroundWindow(HWND handle)