This commit is contained in:
glax 2024-04-16 04:47:24 +02:00
parent e2851dd811
commit d3e623ce26
3 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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);