Skip to content

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

refactor(boot): start listening for keybindings after populating initial state

Lars Bergereb9a467a33ec
diff --git a/GlazeWM.Bootstrapper/Startup.cs b/GlazeWM.Bootstrapper/Startup.cs
index db86a967..0079e88e 100644
--- a/GlazeWM.Bootstrapper/Startup.cs
+++ b/GlazeWM.Bootstrapper/Startup.cs
@@ -49,11 +49,13 @@ namespace GlazeWM.Bootstrapper
// Launch bar WPF application. Spawns bar window when monitors are added, so the service needs
// to be initialized before populating initial state.
_barService.StartApp();
- _keybindingService.Start();
// Populate initial monitors, windows, workspaces and user config.
PopulateInitialState();
+ // Listen on registered keybindings.
+ _keybindingService.Start();
+
// Listen for window events (eg. close, focus).
_windowEventService.Start();
}