Skip to content

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

fix(domain): typo in container to focus on startup

Lars Bergercd1a9fbcfc14
diff --git a/GlazeWM.Domain/Common/CommandHandlers/PopulateInitialStateHandler.cs b/GlazeWM.Domain/Common/CommandHandlers/PopulateInitialStateHandler.cs
index bbfb70c4..6973f544 100644
--- a/GlazeWM.Domain/Common/CommandHandlers/PopulateInitialStateHandler.cs
+++ b/GlazeWM.Domain/Common/CommandHandlers/PopulateInitialStateHandler.cs
@@ -60,8 +60,8 @@ namespace GlazeWM.Domain.Common.CommandHandlers
_windowService.GetWindows().FirstOrDefault() ??
_workspaceService.GetActiveWorkspaces().FirstOrDefault() as Container;
- _bus.Invoke(new SetFocusedDescendantCommand(focusedWindow));
- _bus.RaiseEvent(new FocusChangedEvent(focusedWindow));
+ _bus.Invoke(new SetFocusedDescendantCommand(containerToFocus));
+ _bus.RaiseEvent(new FocusChangedEvent(containerToFocus));
if (containerToFocus is Window)
_bus.Invoke(new FocusWindowCommand(containerToFocus as Window));