diff --git a/Window-Switcher.sln.DotSettings.user b/Window-Switcher.sln.DotSettings.user
index 438ae4d..845d225 100644
--- a/Window-Switcher.sln.DotSettings.user
+++ b/Window-Switcher.sln.DotSettings.user
@@ -25,6 +25,7 @@
ForceIncluded
ForceIncluded
ForceIncluded
+ ForceIncluded
ForceIncluded
ForceIncluded
ForceIncluded
diff --git a/src/WindowSwitcher.Lib/Data/Platform/WindowAccess/Accessors/WindowsWinAccessor.cs b/src/WindowSwitcher.Lib/Data/Platform/WindowAccess/Accessors/WindowsWinAccessor.cs
index 7ed52ed..f5bab64 100644
--- a/src/WindowSwitcher.Lib/Data/Platform/WindowAccess/Accessors/WindowsWinAccessor.cs
+++ b/src/WindowSwitcher.Lib/Data/Platform/WindowAccess/Accessors/WindowsWinAccessor.cs
@@ -145,10 +145,9 @@ private static void BringWindowToFront(IntPtr windowHandle)
if (windowHandle == IntPtr.Zero)
return;
- _ = User32Functions.ShowWindow(
- windowHandle,
- User32Functions.IsIconic(windowHandle) ? SwRestore : SwShow
- );
+ bool isMinimized = User32Functions.IsIconic(windowHandle);
+ if (isMinimized)
+ _ = User32Functions.ShowWindow(windowHandle, SwRestore);
IntPtr foregroundWindowHandle = User32Functions.GetForegroundWindow();
uint currentThreadId = Kernel32Functions.GetCurrentThreadId();
@@ -186,9 +185,9 @@ private static void BringWindowToFront(IntPtr windowHandle)
}
_ = User32Functions.BringWindowToTop(windowHandle);
- _ = User32Functions.SetActiveWindow(windowHandle);
_ = User32Functions.SetForegroundWindow(windowHandle);
- _ = User32Functions.ShowWindow(windowHandle, SwRestore);
+ if (!isMinimized)
+ _ = User32Functions.ShowWindow(windowHandle, SwShow);
}
finally
{
diff --git a/src/WindowSwitcher/Theming/AppTheme.axaml b/src/WindowSwitcher/Theming/AppTheme.axaml
index f7e38db..7e2b6be 100644
--- a/src/WindowSwitcher/Theming/AppTheme.axaml
+++ b/src/WindowSwitcher/Theming/AppTheme.axaml
@@ -1,15 +1,20 @@
+
+
+
-
+
\ No newline at end of file
diff --git a/src/WindowSwitcher/Windows/FiltersWindow.axaml b/src/WindowSwitcher/Windows/FiltersWindow.axaml
index 1c41d88..f52b347 100644
--- a/src/WindowSwitcher/Windows/FiltersWindow.axaml
+++ b/src/WindowSwitcher/Windows/FiltersWindow.axaml
@@ -36,9 +36,20 @@
Content="Add"
Click="AddWhitelistClick" />
-
+
+
+
+
+
+
+
@@ -56,9 +67,20 @@
Content="Add"
Click="AddBlacklistClick" />
-
+
+
+
+
+
+
+
diff --git a/src/WindowSwitcher/Windows/FloatingWindow.axaml b/src/WindowSwitcher/Windows/FloatingWindow.axaml
index 1aa2b30..0c176ab 100644
--- a/src/WindowSwitcher/Windows/FloatingWindow.axaml
+++ b/src/WindowSwitcher/Windows/FloatingWindow.axaml
@@ -6,6 +6,8 @@
xmlns:windows="clr-namespace:WindowSwitcher.Windows"
Icon="/Assets/WS_logo.ico"
ShowInTaskbar="False"
+ CanMinimize="False"
+ CanMaximize="False"
ShowActivated="False"
mc:Ignorable="d"
x:Class="WindowSwitcher.Windows.FloatingWindow"