GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat: manage UWP windows (#257)
blam076f5d8f0792
diff --git a/GlazeWM.Domain/UserConfigs/UserConfigService.cs b/GlazeWM.Domain/UserConfigs/UserConfigService.csindex 81138a29..4561a940 100644--- a/GlazeWM.Domain/UserConfigs/UserConfigService.cs+++ b/GlazeWM.Domain/UserConfigs/UserConfigService.cs@@ -83,6 +83,23 @@ namespace GlazeWM.Domain.UserConfigswindowRules.Add(resizeElectronBorderWindowRule);+ var processNamesToIgnore = new List<string> {+ "SearchHost",+ "ShellExperienceHost",+ "StartMenuExperienceHost",+ };++ foreach (var processName in processNamesToIgnore)+ {+ var windowRule = new WindowRuleConfig()+ {+ MatchProcessName = processName,+ Command = "ignore",+ };++ windowRules.Add(windowRule);+ }+return windowRules;}diff --git a/GlazeWM.Infrastructure/WindowsApi/Enums/EventConstant.cs b/GlazeWM.Infrastructure/WindowsApi/Enums/EventConstant.csindex ada8fcaa..1b1999a0 100644--- a/GlazeWM.Infrastructure/WindowsApi/Enums/EventConstant.cs+++ b/GlazeWM.Infrastructure/WindowsApi/Enums/EventConstant.cs@@ -14,5 +14,7 @@ namespace GlazeWM.Infrastructure.WindowsApi.EnumsHide = 0x8003,LocationChange = 0x800B,NameChange = 0x800C,+ Cloaked = 0x8017,+ Uncloaked = 0x8018}}diff --git a/GlazeWM.Infrastructure/WindowsApi/WindowEventService.cs b/GlazeWM.Infrastructure/WindowsApi/WindowEventService.csindex 2f967c7f..53423178 100644--- a/GlazeWM.Infrastructure/WindowsApi/WindowEventService.cs+++ b/GlazeWM.Infrastructure/WindowsApi/WindowEventService.cs@@ -30,6 +30,8 @@ namespace GlazeWM.Infrastructure.WindowsApiSetWinEventHook(EventConstant.MoveSizeEnd, EventConstant.MoveSizeEnd, IntPtr.Zero, _hookProc, 0, 0, 0);SetWinEventHook(EventConstant.Foreground, EventConstant.Foreground, IntPtr.Zero, _hookProc, 0, 0, 0);SetWinEventHook(EventConstant.LocationChange, EventConstant.NameChange, IntPtr.Zero, _hookProc, 0, 0, 0);+ SetWinEventHook(EventConstant.Cloaked, EventConstant.Uncloaked, IntPtr.Zero, _hookProc, 0, 0, 0);+ SetWinEventHook(EventConstant.Uncloaked, EventConstant.Uncloaked, IntPtr.Zero, _hookProc, 0, 0, 0);}private void WindowEventHookProc(@@ -59,6 +61,8 @@ namespace GlazeWM.Infrastructure.WindowsApiEventConstant.Show => new WindowShownEvent(hwnd),EventConstant.NameChange => new WindowTitleChangedEvent(hwnd),EventConstant.Hide => new WindowHiddenEvent(hwnd),+ EventConstant.Cloaked => new WindowHiddenEvent(hwnd),+ EventConstant.Uncloaked => new WindowShownEvent(hwnd),_ => null,};