Variablename
This commit is contained in:
parent
5a3d185491
commit
e4e65aee92
@ -30,7 +30,7 @@ public class Blur
|
||||
_websocket.ConnectAsync(obsUrl, obsPassword);
|
||||
|
||||
_windowManager.WindowsChanged += WindowManagerOnWindowsChanged;
|
||||
_windowManager.WindowZOrderChanged += WindowManagerOnWindowZOrderChanged;
|
||||
_windowManager.ZOrderChanged += WindowManagerOnWindowZOrderChanged;
|
||||
}
|
||||
|
||||
private void UpdateBlurs()
|
||||
|
@ -27,14 +27,14 @@ public partial class WindowManager : IDisposable
|
||||
if(changedWindows.Length > 0)
|
||||
WindowsChanged?.Invoke(windowInfoBefore.Where(b => changedWindows.Select(c => c.WindowHandle).Contains(b.WindowHandle)).ToArray(), changedWindows);
|
||||
if (zOrderBefore.Length != WindowZOrder.Length)
|
||||
WindowZOrderChanged?.Invoke(WindowZOrder);
|
||||
ZOrderChanged?.Invoke(WindowZOrder);
|
||||
else
|
||||
{
|
||||
IntPtr[] zOrderAfter = WindowZOrder;
|
||||
for(int i = 0; i < zOrderBefore.Length; i++)
|
||||
if (!zOrderBefore[i].Equals(zOrderAfter[i]))
|
||||
{
|
||||
WindowZOrderChanged?.Invoke(zOrderAfter);
|
||||
ZOrderChanged?.Invoke(zOrderAfter);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -52,9 +52,9 @@ public partial class WindowManager : IDisposable
|
||||
public delegate void WindowsChangedHandler(WindowInfo[] before, WindowInfo[] after);
|
||||
public event WindowsChangedHandler WindowsChanged;
|
||||
|
||||
public delegate void WindowZOrderChangedHandler(IntPtr[] newOrder);
|
||||
public delegate void WindowsZOrderChangedHandler(IntPtr[] newOrder);
|
||||
|
||||
public event WindowZOrderChangedHandler WindowZOrderChanged;
|
||||
public event WindowsZOrderChangedHandler ZOrderChanged;
|
||||
|
||||
private bool GetWindowInfo(IntPtr windowHandle, IntPtr lParam)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user