Clean windows when doing anything, to keep tidy

This commit is contained in:
2025-01-04 12:13:18 +01:00
parent 4aaedac17c
commit 7beb55e3ce

View File

@@ -139,6 +139,7 @@ internal static class Program {
index = (index - 1) % NumProc; index = (index - 1) % NumProc;
if (index < 0) index = NumProc - 1; if (index < 0) index = NumProc - 1;
if (index >= NumProc) return; if (index >= NumProc) return;
CleanWindows();
Console.WriteLine($"Swapping window at index {index}"); Console.WriteLine($"Swapping window at index {index}");
var process = GetForegroundProcess(); var process = GetForegroundProcess();
if (process == null) return; if (process == null) return;
@@ -178,6 +179,7 @@ internal static class Program {
index = (index - 1) % NumProc; index = (index - 1) % NumProc;
if (index < 0) index = NumProc - 1; if (index < 0) index = NumProc - 1;
if (index >= NumProc) return; if (index >= NumProc) return;
CleanWindows();
Console.WriteLine($"Tab to window at index {index}"); Console.WriteLine($"Tab to window at index {index}");
var window = windows[index]; var window = windows[index];