Cleanup
This commit is contained in:
parent
e2851dd811
commit
d3e623ce26
@ -53,7 +53,7 @@ public class Blur
|
|||||||
else if(maximixedWindowReached)
|
else if(maximixedWindowReached)
|
||||||
DeleteBlur(windowInfo);
|
DeleteBlur(windowInfo);
|
||||||
|
|
||||||
if (windowInfo.WindowCommands is ShowWindowCommands.Maximize)
|
if (windowInfo.WindowCommands is ShowWindowCommands.Maximize or ShowWindowCommands.ShowMaximized)
|
||||||
maximixedWindowReached = true;
|
maximixedWindowReached = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
while (true)
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
@ -5,8 +5,6 @@ namespace OBSBlur.Window;
|
|||||||
|
|
||||||
public partial class WindowManager
|
public partial class WindowManager
|
||||||
{
|
{
|
||||||
[DllImport("user32.dll")]
|
|
||||||
private static extern IntPtr GetForegroundWindow();
|
|
||||||
|
|
||||||
[DllImport("user32.dll", SetLastError = true)]
|
[DllImport("user32.dll", SetLastError = true)]
|
||||||
static extern IntPtr GetWindow(IntPtr hWnd, uint uCmd);
|
static extern IntPtr GetWindow(IntPtr hWnd, uint uCmd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user