mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Clean up codes
This commit is contained in:
parent
fa465130c6
commit
b7694d3130
2 changed files with 1 additions and 3 deletions
|
|
@ -67,8 +67,6 @@ namespace Flow.Launcher.Infrastructure
|
||||||
return explorerWindows.Zip(zOrders).MinBy(x => x.Second).First;
|
return explorerWindows.Zip(zOrders).MinBy(x => x.Second).First;
|
||||||
}
|
}
|
||||||
|
|
||||||
private delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the z-order for one or more windows atomically with respect to each other. In Windows, smaller z-order is higher. If the window is not top level, the z order is returned as -1.
|
/// Gets the z-order for one or more windows atomically with respect to each other. In Windows, smaller z-order is higher. If the window is not top level, the z order is returned as -1.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ namespace Flow.Launcher.Plugin.ProcessKiller
|
||||||
public static unsafe Dictionary<int, string> GetProcessesWithNonEmptyWindowTitle()
|
public static unsafe Dictionary<int, string> GetProcessesWithNonEmptyWindowTitle()
|
||||||
{
|
{
|
||||||
var processDict = new Dictionary<int, string>();
|
var processDict = new Dictionary<int, string>();
|
||||||
PInvoke.EnumWindows((hWnd, lParam) =>
|
PInvoke.EnumWindows((hWnd, _) =>
|
||||||
{
|
{
|
||||||
var windowTitle = GetWindowTitle(hWnd);
|
var windowTitle = GetWindowTitle(hWnd);
|
||||||
if (!string.IsNullOrWhiteSpace(windowTitle) && PInvoke.IsWindowVisible(hWnd))
|
if (!string.IsNullOrWhiteSpace(windowTitle) && PInvoke.IsWindowVisible(hWnd))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue