Variablename

This commit is contained in:
glax 2024-04-16 20:57:54 +02:00
parent 5a3d185491
commit e4e65aee92
2 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ public class Blur
_websocket.ConnectAsync(obsUrl, obsPassword);
_windowManager.WindowsChanged += WindowManagerOnWindowsChanged;
_windowManager.WindowZOrderChanged += WindowManagerOnWindowZOrderChanged;
_windowManager.ZOrderChanged += WindowManagerOnWindowZOrderChanged;
}
private void UpdateBlurs()

View File

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