From 7beb55e3cef00caf65fea0fd0e0660baaa51db98 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sat, 4 Jan 2025 12:13:18 +0100 Subject: [PATCH] Clean windows when doing anything, to keep tidy --- DD2Switcher/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DD2Switcher/Program.cs b/DD2Switcher/Program.cs index 1d2d8ec..8b22a8d 100644 --- a/DD2Switcher/Program.cs +++ b/DD2Switcher/Program.cs @@ -139,6 +139,7 @@ internal static class Program { index = (index - 1) % NumProc; if (index < 0) index = NumProc - 1; if (index >= NumProc) return; + CleanWindows(); Console.WriteLine($"Swapping window at index {index}"); var process = GetForegroundProcess(); if (process == null) return; @@ -178,6 +179,7 @@ internal static class Program { index = (index - 1) % NumProc; if (index < 0) index = NumProc - 1; if (index >= NumProc) return; + CleanWindows(); Console.WriteLine($"Tab to window at index {index}"); var window = windows[index];