Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat: added property indicating whether a window can be moved to Window model

Larsf8b21ad8d58e
diff --git a/LarsWM/Window.cs b/LarsWM/Window.cs
index 42a4e1cb..16b4aa9b 100644
--- a/LarsWM/Window.cs
+++ b/LarsWM/Window.cs
@@ -22,6 +22,8 @@ namespace LarsWM
public WindowRect Location => GetLocationOfWindow(this);
+ public bool CanLayout => !IsWindowCloaked(this);
+
/// <summary>
/// This window's style flags.
/// </summary>
diff --git a/LarsWM/WindowManager.cs b/LarsWM/WindowManager.cs
index 376341f2..f52d0749 100644
--- a/LarsWM/WindowManager.cs
+++ b/LarsWM/WindowManager.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
@@ -65,12 +65,12 @@ namespace LarsWM
uint processId;
GetWindowThreadProcessId(window.Hwnd, out processId);
var _processId = (int)processId;
- //Debug.WriteLine(_processId);
var process = Process.GetProcesses().FirstOrDefault(p => p.Id == _processId);
var _processName = process.ProcessName;
Debug.WriteLine(_processName);
Debug.WriteLine(window.Location);
+ Debug.WriteLine(window.CanLayout);
}
public Monitor GetMonitorFromWindowHandle(Window window)