GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
fix(domain): ignore focus events for hidden windows * This fixes issue where some windows would be lost when moving + focusing a workspace
Lars Bergeree3d868968a5
diff --git a/GlazeWM.Domain/Windows/EventHandlers/WindowFocusedHandler.cs b/GlazeWM.Domain/Windows/EventHandlers/WindowFocusedHandler.csindex 5636bedf..50f6e947 100644--- a/GlazeWM.Domain/Windows/EventHandlers/WindowFocusedHandler.cs+++ b/GlazeWM.Domain/Windows/EventHandlers/WindowFocusedHandler.cs@@ -29,7 +29,7 @@ namespace GlazeWM.Domain.Windows.EventHandlersvar window = _windowService.GetWindows().FirstOrDefault(window => window.Handle == @event.WindowHandle);- if (window == null)+ if (window is null || window?.IsDisplayed == false)return;_logger.LogWindowEvent("Window focused", window);