diff --git a/OBSBlur/OBS/Blur.cs b/OBSBlur/OBS/Blur.cs index 68627a3..29d603e 100644 --- a/OBSBlur/OBS/Blur.cs +++ b/OBSBlur/OBS/Blur.cs @@ -53,7 +53,7 @@ public class Blur else if(maximixedWindowReached) DeleteBlur(windowInfo); - if (windowInfo.WindowCommands is ShowWindowCommands.Maximize) + if (windowInfo.WindowCommands is ShowWindowCommands.Maximize or ShowWindowCommands.ShowMaximized) maximixedWindowReached = true; } diff --git a/OBSBlur/Program.cs b/OBSBlur/Program.cs index f415f12..39edb12 100644 --- a/OBSBlur/Program.cs +++ b/OBSBlur/Program.cs @@ -2,7 +2,7 @@ -Blur _ = new Blur("ws://localhost:4444", "", new []{"Desktop"}, new []{ "Discord", "VRCX" }); +Blur _ = new ("ws://localhost:4444", "", new []{"Desktop"}, new []{ "Discord", "VRCX" }); while (true) Thread.Sleep(100); \ No newline at end of file diff --git a/OBSBlur/Window/WindowManagerUser32Dll.cs b/OBSBlur/Window/WindowManagerUser32Dll.cs index 1c69ecb..4e3ed94 100644 --- a/OBSBlur/Window/WindowManagerUser32Dll.cs +++ b/OBSBlur/Window/WindowManagerUser32Dll.cs @@ -5,8 +5,6 @@ namespace OBSBlur.Window; public partial class WindowManager { - [DllImport("user32.dll")] - private static extern IntPtr GetForegroundWindow(); [DllImport("user32.dll", SetLastError = true)] static extern IntPtr GetWindow(IntPtr hWnd, uint uCmd);