GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat(boot): call AddInitialWindowsCommand instead of AddWindowCommand on startup
Larse2eb69faf04c
diff --git a/LarsWM.Bootstrapper/Startup.cs b/LarsWM.Bootstrapper/Startup.csindex 2c42f466..c988bfc3 100644--- a/LarsWM.Bootstrapper/Startup.cs+++ b/LarsWM.Bootstrapper/Startup.cs@@ -1,4 +1,4 @@-using LarsWM.Domain.Common.Services;+using LarsWM.Domain.Common.Services;using LarsWM.Domain.Monitors;using LarsWM.Domain.Monitors.Commands;using LarsWM.Domain.UserConfigs.Commands;@@ -38,10 +38,6 @@ namespace LarsWM.Bootstrapper// Populate initial monitors, windows, workspaces and user config.PopulateInitialState();-- // Subscribe to windows hooks-- // Create a command for forcing the initial layout}/// <summary>@@ -56,21 +52,8 @@ namespace LarsWM.Bootstrapperforeach (var screen in Screen.AllScreens)_bus.Invoke(new AddMonitorCommand(screen));- EnumWindows((IntPtr hwnd, int lParam) =>- {- _bus.Invoke(new AddWindowCommand(hwnd));- return true;- }, IntPtr.Zero);-- // TODO: move the below code to its own command- //var windows = GetOpenWindows();-- //foreach (var window in windows)- //{- // // Add window to its nearest workspace- // var targetMonitor = _monitorService.GetMonitorFromWindowHandle(window);- // targetMonitor.DisplayedWorkspace.WindowsInWorkspace.Add(window);- //}+ // Add initial windows to tree.+ _bus.Invoke(new AddInitialWindowsCommand());}}}