GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat: get window title text of all open windows in WindowManager
Larsa1d12f9f74ef
diff --git a/LarsWM/WindowManager.cs b/LarsWM/WindowManager.csindex 930cfc5c..1b988392 100644--- a/LarsWM/WindowManager.cs+++ b/LarsWM/WindowManager.cs@@ -39,8 +39,14 @@ namespace LarsWM//facade.GetOpenWindows();Predicate<Window> ALL = delegate { return true; };- var windows = WindowsApi.WindowsApiFacade.FilterToplevelWindows(ALL);- Console.WriteLine(windows);+ var windows = WindowsApi.WindowsApiFacade.GetOpenWindows();++ foreach (var window in windows)+ {+ StringBuilder sb = new StringBuilder(WindowsApi.WindowsApiService.GetWindowTextLength(window.Hwnd) + 1);+ WindowsApi.WindowsApiService.GetWindowText(window.Hwnd, sb, sb.Capacity);+ Debug.WriteLine(sb.ToString());+ }}public int NumMonitors => _monitors.Count;