GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat(domain): partial implementation of ResizeFocusedWindowHandler
Larsf301b359b72d
diff --git a/LarsWM.Domain/Windows/CommandHandlers/ResizeFocusedWindowHandler.cs b/LarsWM.Domain/Windows/CommandHandlers/ResizeFocusedWindowHandler.csindex 9eed0bc5..92e9b05f 100644--- a/LarsWM.Domain/Windows/CommandHandlers/ResizeFocusedWindowHandler.cs+++ b/LarsWM.Domain/Windows/CommandHandlers/ResizeFocusedWindowHandler.cs@@ -1,4 +1,5 @@using System;+using LarsWM.Domain.UserConfigs;using LarsWM.Domain.Windows.Commands;using LarsWM.Infrastructure.Bussing;@@ -7,14 +8,20 @@ namespace LarsWM.Domain.Windows.CommandHandlersclass ResizeFocusedWindowHandler : ICommandHandler<ResizeFocusedWindowCommand>{private WindowService _windowService;+ private UserConfigService _userConfigService;- public ResizeFocusedWindowHandler(WindowService windowService)+ public ResizeFocusedWindowHandler(WindowService windowService, UserConfigService userConfigService){_windowService = windowService;+ _userConfigService = userConfigService;}public dynamic Handle(ResizeFocusedWindowCommand command){+ var resizePercentage = _userConfigService.UserConfig.ResizePercentage;+ var focusedWindow = _windowService.FocusedWindow;+ var parent = focusedWindow.Parent;+throw new NotImplementedException();}}diff --git a/LarsWM.Domain/Windows/Commands/ResizeFocusedWindowCommand.cs b/LarsWM.Domain/Windows/Commands/ResizeFocusedWindowCommand.csindex f5143afc..18d1b744 100644--- a/LarsWM.Domain/Windows/Commands/ResizeFocusedWindowCommand.cs+++ b/LarsWM.Domain/Windows/Commands/ResizeFocusedWindowCommand.cs@@ -1,8 +1,15 @@-using LarsWM.Infrastructure.Bussing;+using LarsWM.Domain.Common.Enums;+using LarsWM.Infrastructure.Bussing;namespace LarsWM.Domain.Windows.Commands{public class ResizeFocusedWindowCommand : Command{+ public Direction Direction { get; }++ public ResizeFocusedWindowCommand(Direction direction)+ {+ Direction = direction;+ }}}