GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
style: corrected EOL characters
Lars847d447a25eb
diff --git a/.gitignore b/.gitignoreindex 3b472a65..6d9dadb2 100644--- a/.gitignore+++ b/.gitignore@@ -1,234 +1,234 @@-## Ignore Visual Studio temporary files, build results, and-## files generated by popular Visual Studio add-ons.--# User-specific files-*.suo-*.user-*.userosscache-*.sln.docstates--# User-specific files (MonoDevelop/Xamarin Studio)-*.userprefs--# Build results-[Dd]ebug/-[Dd]ebugPublic/-[Rr]elease/-[Rr]eleases/-x64/-x86/-build/-bld/-[Bb]in/-[Oo]bj/--# Visual Studio 2015 cache/options directory-.vs/-# Uncomment if you have tasks that create the project's static files in wwwroot-#wwwroot/--# MSTest test Results-[Tt]est[Rr]esult*/-[Bb]uild[Ll]og.*--# NUNIT-*.VisualState.xml-TestResult.xml--# Build Results of an ATL Project-[Dd]ebugPS/-[Rr]eleasePS/-dlldata.c--# DNX-project.lock.json-artifacts/--*_i.c-*_p.c-*_i.h-*.ilk-*.meta-*.obj-*.pch-*.pdb-*.pgc-*.pgd-*.rsp-*.sbr-*.tlb-*.tli-*.tlh-*.tmp-*.tmp_proj-*.log-*.vspscc-*.vssscc-.builds-*.pidb-*.svclog-*.scc--# Chutzpah Test files-_Chutzpah*--# Visual C++ cache files-ipch/-*.aps-*.ncb-*.opendb-*.opensdf-*.sdf-*.cachefile--# Visual Studio profiler-*.psess-*.vsp-*.vspx-*.sap--# TFS 2012 Local Workspace-$tf/--# Guidance Automation Toolkit-*.gpState--# ReSharper is a .NET coding add-in-_ReSharper*/-*.[Rr]e[Ss]harper-*.DotSettings.user--# JustCode is a .NET coding add-in-.JustCode--# TeamCity is a build add-in-_TeamCity*--# DotCover is a Code Coverage Tool-*.dotCover--# NCrunch-_NCrunch_*-.*crunch*.local.xml-nCrunchTemp_*--# MightyMoose-*.mm.*-AutoTest.Net/--# Web workbench (sass)-.sass-cache/--# Installshield output folder-[Ee]xpress/--# DocProject is a documentation generator add-in-DocProject/buildhelp/-DocProject/Help/*.HxT-DocProject/Help/*.HxC-DocProject/Help/*.hhc-DocProject/Help/*.hhk-DocProject/Help/*.hhp-DocProject/Help/Html2-DocProject/Help/html--# Click-Once directory-publish/--# Publish Web Output-*.[Pp]ublish.xml-*.azurePubxml-# TODO: Comment the next line if you want to checkin your web deploy settings-# but database connection strings (with potential passwords) will be unencrypted-*.pubxml-*.publishproj--# NuGet Packages-*.nupkg-# The packages folder can be ignored because of Package Restore-**/packages/*-# except build/, which is used as an MSBuild target.-!**/packages/build/-# Uncomment if necessary however generally it will be regenerated when needed-#!**/packages/repositories.config--# Microsoft Azure Build Output-csx/-*.build.csdef--# Microsoft Azure Emulator-ecf/-rcf/--# Microsoft Azure ApplicationInsights config file-ApplicationInsights.config--# Windows Store app package directory-AppPackages/-BundleArtifacts/--# Visual Studio cache files-# files ending in .cache can be ignored-*.[Cc]ache-# but keep track of directories ending in .cache-!*.[Cc]ache/--# Others-ClientBin/-~$*-*~-*.dbmdl-*.dbproj.schemaview-*.pfx-*.publishsettings-node_modules/-orleans.codegen.cs--# RIA/Silverlight projects-Generated_Code/--# Backup & report files from converting an old project file-# to a newer Visual Studio version. Backup files are not needed,-# because we have git ;-)-_UpgradeReport_Files/-Backup*/-UpgradeLog*.XML-UpgradeLog*.htm--# SQL Server files-*.mdf-*.ldf--# Business Intelligence projects-*.rdl.data-*.bim.layout-*.bim_*.settings--# Microsoft Fakes-FakesAssemblies/--# GhostDoc plugin setting file-*.GhostDoc.xml--# Node.js Tools for Visual Studio-.ntvs_analysis.dat--# Visual Studio 6 build log-*.plg--# Visual Studio 6 workspace options file-*.opt--# Visual Studio LightSwitch build output-**/*.HTMLClient/GeneratedArtifacts-**/*.DesktopClient/GeneratedArtifacts-**/*.DesktopClient/ModelManifest.xml-**/*.Server/GeneratedArtifacts-**/*.Server/ModelManifest.xml-_Pvt_Extensions--# Paket dependency manager-.paket/paket.exe--# FAKE - F# Make-.fake/+## Ignore Visual Studio temporary files, build results, and+## files generated by popular Visual Studio add-ons.++# User-specific files+*.suo+*.user+*.userosscache+*.sln.docstates++# User-specific files (MonoDevelop/Xamarin Studio)+*.userprefs++# Build results+[Dd]ebug/+[Dd]ebugPublic/+[Rr]elease/+[Rr]eleases/+x64/+x86/+build/+bld/+[Bb]in/+[Oo]bj/++# Visual Studio 2015 cache/options directory+.vs/+# Uncomment if you have tasks that create the project's static files in wwwroot+#wwwroot/++# MSTest test Results+[Tt]est[Rr]esult*/+[Bb]uild[Ll]og.*++# NUNIT+*.VisualState.xml+TestResult.xml++# Build Results of an ATL Project+[Dd]ebugPS/+[Rr]eleasePS/+dlldata.c++# DNX+project.lock.json+artifacts/++*_i.c+*_p.c+*_i.h+*.ilk+*.meta+*.obj+*.pch+*.pdb+*.pgc+*.pgd+*.rsp+*.sbr+*.tlb+*.tli+*.tlh+*.tmp+*.tmp_proj+*.log+*.vspscc+*.vssscc+.builds+*.pidb+*.svclog+*.scc++# Chutzpah Test files+_Chutzpah*++# Visual C++ cache files+ipch/+*.aps+*.ncb+*.opendb+*.opensdf+*.sdf+*.cachefile++# Visual Studio profiler+*.psess+*.vsp+*.vspx+*.sap++# TFS 2012 Local Workspace+$tf/++# Guidance Automation Toolkit+*.gpState++# ReSharper is a .NET coding add-in+_ReSharper*/+*.[Rr]e[Ss]harper+*.DotSettings.user++# JustCode is a .NET coding add-in+.JustCode++# TeamCity is a build add-in+_TeamCity*++# DotCover is a Code Coverage Tool+*.dotCover++# NCrunch+_NCrunch_*+.*crunch*.local.xml+nCrunchTemp_*++# MightyMoose+*.mm.*+AutoTest.Net/++# Web workbench (sass)+.sass-cache/++# Installshield output folder+[Ee]xpress/++# DocProject is a documentation generator add-in+DocProject/buildhelp/+DocProject/Help/*.HxT+DocProject/Help/*.HxC+DocProject/Help/*.hhc+DocProject/Help/*.hhk+DocProject/Help/*.hhp+DocProject/Help/Html2+DocProject/Help/html++# Click-Once directory+publish/++# Publish Web Output+*.[Pp]ublish.xml+*.azurePubxml+# TODO: Comment the next line if you want to checkin your web deploy settings+# but database connection strings (with potential passwords) will be unencrypted+*.pubxml+*.publishproj++# NuGet Packages+*.nupkg+# The packages folder can be ignored because of Package Restore+**/packages/*+# except build/, which is used as an MSBuild target.+!**/packages/build/+# Uncomment if necessary however generally it will be regenerated when needed+#!**/packages/repositories.config++# Microsoft Azure Build Output+csx/+*.build.csdef++# Microsoft Azure Emulator+ecf/+rcf/++# Microsoft Azure ApplicationInsights config file+ApplicationInsights.config++# Windows Store app package directory+AppPackages/+BundleArtifacts/++# Visual Studio cache files+# files ending in .cache can be ignored+*.[Cc]ache+# but keep track of directories ending in .cache+!*.[Cc]ache/++# Others+ClientBin/+~$*+*~+*.dbmdl+*.dbproj.schemaview+*.pfx+*.publishsettings+node_modules/+orleans.codegen.cs++# RIA/Silverlight projects+Generated_Code/++# Backup & report files from converting an old project file+# to a newer Visual Studio version. Backup files are not needed,+# because we have git ;-)+_UpgradeReport_Files/+Backup*/+UpgradeLog*.XML+UpgradeLog*.htm++# SQL Server files+*.mdf+*.ldf++# Business Intelligence projects+*.rdl.data+*.bim.layout+*.bim_*.settings++# Microsoft Fakes+FakesAssemblies/++# GhostDoc plugin setting file+*.GhostDoc.xml++# Node.js Tools for Visual Studio+.ntvs_analysis.dat++# Visual Studio 6 build log+*.plg++# Visual Studio 6 workspace options file+*.opt++# Visual Studio LightSwitch build output+**/*.HTMLClient/GeneratedArtifacts+**/*.DesktopClient/GeneratedArtifacts+**/*.DesktopClient/ModelManifest.xml+**/*.Server/GeneratedArtifacts+**/*.Server/ModelManifest.xml+_Pvt_Extensions++# Paket dependency manager+.paket/paket.exe++# FAKE - F# Make+.fake/diff --git a/LarsWM.Core/Common/Models/ICommandHandler.cs b/LarsWM.Core/Common/Models/ICommandHandler.csindex 12439e43..b0d7ef23 100644--- a/LarsWM.Core/Common/Models/ICommandHandler.cs+++ b/LarsWM.Core/Common/Models/ICommandHandler.cs@@ -1,11 +1,11 @@-using System;-using System.Collections.Generic;-using System.Text;--namespace LarsWM.Core.Common.Models-{- public interface ICommandHandler<TCommand> where TCommand : Command- {- void Handle(TCommand command);- }-}+using System;+using System.Collections.Generic;+using System.Text;++namespace LarsWM.Core.Common.Models+{+ public interface ICommandHandler<TCommand> where TCommand : Command+ {+ void Handle(TCommand command);+ }+}diff --git a/LarsWM.Core/Common/Models/IEventHandler.cs b/LarsWM.Core/Common/Models/IEventHandler.csindex be556b99..920425f6 100644--- a/LarsWM.Core/Common/Models/IEventHandler.cs+++ b/LarsWM.Core/Common/Models/IEventHandler.cs@@ -1,11 +1,11 @@-using System;-using System.Collections.Generic;-using System.Text;--namespace LarsWM.Core.Common.Models-{- public interface IEventHandler<TEvent> where TEvent : Event- {- void Handle(TEvent @event);- }-}+using System;+using System.Collections.Generic;+using System.Text;++namespace LarsWM.Core.Common.Models+{+ public interface IEventHandler<TEvent> where TEvent : Event+ {+ void Handle(TEvent @event);+ }+}diff --git a/LarsWM.Core/Common/Models/MovementDirection.cs b/LarsWM.Core/Common/Models/MovementDirection.csindex 850664b2..0d5d8529 100644--- a/LarsWM.Core/Common/Models/MovementDirection.cs+++ b/LarsWM.Core/Common/Models/MovementDirection.cs@@ -1,14 +1,14 @@-using System;-using System.Collections.Generic;-using System.Text;--namespace LarsWM.Core.Common.Models-{- public enum MovementDirection- {- Up,- Down,- Left,- Right,- }-}+using System;+using System.Collections.Generic;+using System.Text;++namespace LarsWM.Core.Common.Models+{+ public enum MovementDirection+ {+ Up,+ Down,+ Left,+ Right,+ }+}diff --git a/LarsWM.Core/Common/Models/SetWindowPosFlags.cs b/LarsWM.Core/Common/Models/SetWindowPosFlags.csindex a06dae22..5f45e77b 100644--- a/LarsWM.Core/Common/Models/SetWindowPosFlags.cs+++ b/LarsWM.Core/Common/Models/SetWindowPosFlags.cs@@ -1,68 +1,68 @@-using System;--namespace LarsWM.Core.WindowsApi-{- /// <summary>- /// Window sizing and positioning flags- /// </summary>- [Flags]- public enum SetWindowPosFlags : uint- {- /// <summary>If the calling thread and the thread that owns the window are attached to different input queues,- /// the system posts the request to the thread that owns the window. This prevents the calling thread from- /// blocking its execution while other threads process the request.</summary>- /// <remarks>SWP_ASYNCWINDOWPOS</remarks>- AsynchronousWindowPosition = 0x4000,- /// <summary>Prevents generation of the WM_SYNCPAINT message.</summary>- /// <remarks>SWP_DEFERERASE</remarks>- DeferErase = 0x2000,- /// <summary>Draws a frame (defined in the window's class description) around the window.</summary>- /// <remarks>SWP_DRAWFRAME</remarks>- DrawFrame = 0x0020,- /// <summary>Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to- /// the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE- /// is sent only when the window's size is being changed.</summary>- /// <remarks>SWP_FRAMECHANGED</remarks>- FrameChanged = 0x0020,- /// <summary>Hides the window.</summary>- /// <remarks>SWP_HIDEWINDOW</remarks>- HideWindow = 0x0080,- /// <summary>Does not activate the window. If this flag is not set, the window is activated and moved to the- /// top of either the topmost or non-topmost group (depending on the setting of the hWndInsertAfter- /// parameter).</summary>- /// <remarks>SWP_NOACTIVATE</remarks>- DoNotActivate = 0x0010,- /// <summary>Discards the entire contents of the client area. If this flag is not specified, the valid- /// contents of the client area are saved and copied back into the client area after the window is sized or- /// repositioned.</summary>- /// <remarks>SWP_NOCOPYBITS</remarks>- DoNotCopyBits = 0x0100,- /// <summary>Retains the current position (ignores X and Y parameters).</summary>- /// <remarks>SWP_NOMOVE</remarks>- IgnoreMove = 0x0002,- /// <summary>Does not change the owner window's position in the Z order.</summary>- /// <remarks>SWP_NOOWNERZORDER</remarks>- DoNotChangeOwnerZOrder = 0x0200,- /// <summary>Does not redraw changes. If this flag is set, no repainting of any kind occurs. This applies to- /// the client area, the nonclient area (including the title bar and scroll bars), and any part of the parent- /// window uncovered as a result of the window being moved. When this flag is set, the application must- /// explicitly invalidate or redraw any parts of the window and parent window that need redrawing.</summary>- /// <remarks>SWP_NOREDRAW</remarks>- DoNotRedraw = 0x0008,- /// <summary>Same as the SWP_NOOWNERZORDER flag.</summary>- /// <remarks>SWP_NOREPOSITION</remarks>- DoNotReposition = 0x0200,- /// <summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</summary>- /// <remarks>SWP_NOSENDCHANGING</remarks>- DoNotSendChangingEvent = 0x0400,- /// <summary>Retains the current size (ignores the cx and cy parameters).</summary>- /// <remarks>SWP_NOSIZE</remarks>- IgnoreResize = 0x0001,- /// <summary>Retains the current Z order (ignores the hWndInsertAfter parameter).</summary>- /// <remarks>SWP_NOZORDER</remarks>- IgnoreZOrder = 0x0004,- /// <summary>Displays the window.</summary>- /// <remarks>SWP_SHOWWINDOW</remarks>- ShowWindow = 0x0040,- }-}+using System;++namespace LarsWM.Core.WindowsApi+{+ /// <summary>+ /// Window sizing and positioning flags+ /// </summary>+ [Flags]+ public enum SetWindowPosFlags : uint+ {+ /// <summary>If the calling thread and the thread that owns the window are attached to different input queues,+ /// the system posts the request to the thread that owns the window. This prevents the calling thread from+ /// blocking its execution while other threads process the request.</summary>+ /// <remarks>SWP_ASYNCWINDOWPOS</remarks>+ AsynchronousWindowPosition = 0x4000,+ /// <summary>Prevents generation of the WM_SYNCPAINT message.</summary>+ /// <remarks>SWP_DEFERERASE</remarks>+ DeferErase = 0x2000,+ /// <summary>Draws a frame (defined in the window's class description) around the window.</summary>+ /// <remarks>SWP_DRAWFRAME</remarks>+ DrawFrame = 0x0020,+ /// <summary>Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to+ /// the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE+ /// is sent only when the window's size is being changed.</summary>+ /// <remarks>SWP_FRAMECHANGED</remarks>+ FrameChanged = 0x0020,+ /// <summary>Hides the window.</summary>+ /// <remarks>SWP_HIDEWINDOW</remarks>+ HideWindow = 0x0080,+ /// <summary>Does not activate the window. If this flag is not set, the window is activated and moved to the+ /// top of either the topmost or non-topmost group (depending on the setting of the hWndInsertAfter+ /// parameter).</summary>+ /// <remarks>SWP_NOACTIVATE</remarks>+ DoNotActivate = 0x0010,+ /// <summary>Discards the entire contents of the client area. If this flag is not specified, the valid+ /// contents of the client area are saved and copied back into the client area after the window is sized or+ /// repositioned.</summary>+ /// <remarks>SWP_NOCOPYBITS</remarks>+ DoNotCopyBits = 0x0100,+ /// <summary>Retains the current position (ignores X and Y parameters).</summary>+ /// <remarks>SWP_NOMOVE</remarks>+ IgnoreMove = 0x0002,+ /// <summary>Does not change the owner window's position in the Z order.</summary>+ /// <remarks>SWP_NOOWNERZORDER</remarks>+ DoNotChangeOwnerZOrder = 0x0200,+ /// <summary>Does not redraw changes. If this flag is set, no repainting of any kind occurs. This applies to+ /// the client area, the nonclient area (including the title bar and scroll bars), and any part of the parent+ /// window uncovered as a result of the window being moved. When this flag is set, the application must+ /// explicitly invalidate or redraw any parts of the window and parent window that need redrawing.</summary>+ /// <remarks>SWP_NOREDRAW</remarks>+ DoNotRedraw = 0x0008,+ /// <summary>Same as the SWP_NOOWNERZORDER flag.</summary>+ /// <remarks>SWP_NOREPOSITION</remarks>+ DoNotReposition = 0x0200,+ /// <summary>Prevents the window from receiving the WM_WINDOWPOSCHANGING message.</summary>+ /// <remarks>SWP_NOSENDCHANGING</remarks>+ DoNotSendChangingEvent = 0x0400,+ /// <summary>Retains the current size (ignores the cx and cy parameters).</summary>+ /// <remarks>SWP_NOSIZE</remarks>+ IgnoreResize = 0x0001,+ /// <summary>Retains the current Z order (ignores the hWndInsertAfter parameter).</summary>+ /// <remarks>SWP_NOZORDER</remarks>+ IgnoreZOrder = 0x0004,+ /// <summary>Displays the window.</summary>+ /// <remarks>SWP_SHOWWINDOW</remarks>+ ShowWindow = 0x0040,+ }+}diff --git a/LarsWM.Core/Common/Models/WindowLocation.cs b/LarsWM.Core/Common/Models/WindowLocation.csindex c23329b0..a51b3429 100644--- a/LarsWM.Core/Common/Models/WindowLocation.cs+++ b/LarsWM.Core/Common/Models/WindowLocation.cs@@ -1,18 +1,18 @@-namespace LarsWM.Core-{- public class WindowLocation- {- public int X { get; private set;}- public int Y { get; private set;}- public int Width { get; private set;}- public int Height { get; private set;}-- public WindowLocation(int x, int y, int width, int height)- {- X = x;- Y = y;- Width = width;- Height = height;- }- }+namespace LarsWM.Core+{+ public class WindowLocation+ {+ public int X { get; private set;}+ public int Y { get; private set;}+ public int Width { get; private set;}+ public int Height { get; private set;}++ public WindowLocation(int x, int y, int width, int height)+ {+ X = x;+ Y = y;+ Width = width;+ Height = height;+ }+ }}\ No newline at end of filediff --git a/LarsWM.Core/Common/Models/WindowRect.cs b/LarsWM.Core/Common/Models/WindowRect.csindex c8f192ff..6bb801c5 100644--- a/LarsWM.Core/Common/Models/WindowRect.cs+++ b/LarsWM.Core/Common/Models/WindowRect.cs@@ -1,29 +1,29 @@-using System;-using System.Collections.Generic;-using System.Text;--namespace LarsWM.Core.WindowsApi.DataTypes-{- public struct WindowRect- {- /// <summary>- /// The x-coordinate of the upper-left corner of the rectangle.- /// </summary>- public int Left { get; set; }-- /// <summary>- /// The y-coordinate of the upper-left corner of the rectangle.- /// </summary>- public int Top { get; set; }-- /// <summary>- /// The x-coordinate of the lower-right corner of the rectangle.- /// </summary>- public int Right { get; set; }-- /// <summary>- /// The y-coordinate of the lower-right corner of the rectangle.- /// </summary>- public int Bottom { get; set; }- }-}+using System;+using System.Collections.Generic;+using System.Text;++namespace LarsWM.Core.WindowsApi.DataTypes+{+ public struct WindowRect+ {+ /// <summary>+ /// The x-coordinate of the upper-left corner of the rectangle.+ /// </summary>+ public int Left { get; set; }++ /// <summary>+ /// The y-coordinate of the upper-left corner of the rectangle.+ /// </summary>+ public int Top { get; set; }++ /// <summary>+ /// The x-coordinate of the lower-right corner of the rectangle.+ /// </summary>+ public int Right { get; set; }++ /// <summary>+ /// The y-coordinate of the lower-right corner of the rectangle.+ /// </summary>+ public int Bottom { get; set; }+ }+}diff --git a/LarsWM.Core/Monitors/Commands/AddMonitorCommand.cs b/LarsWM.Core/Monitors/Commands/AddMonitorCommand.csindex b1aeb537..28fd7929 100644--- a/LarsWM.Core/Monitors/Commands/AddMonitorCommand.cs+++ b/LarsWM.Core/Monitors/Commands/AddMonitorCommand.cs@@ -1,18 +1,18 @@-using LarsWM.Core.Common.Models;-using System;-using System.Collections.Generic;-using System.Text;-using System.Windows.Forms;--namespace LarsWM.Core.Monitors.Commands-{- class AddMonitorCommand : Command- {- public Screen Screen { get; set; }-- public AddMonitorCommand(Screen screen)- {- Screen = screen;- }- }-}+using LarsWM.Core.Common.Models;+using System;+using System.Collections.Generic;+using System.Text;+using System.Windows.Forms;++namespace LarsWM.Core.Monitors.Commands+{+ class AddMonitorCommand : Command+ {+ public Screen Screen { get; set; }++ public AddMonitorCommand(Screen screen)+ {+ Screen = screen;+ }+ }+}diff --git a/LarsWM.Core/Monitors/Events/NewMonitorDetectedEvent.cs b/LarsWM.Core/Monitors/Events/NewMonitorDetectedEvent.csindex c4792e2d..50bdcfea 100644--- a/LarsWM.Core/Monitors/Events/NewMonitorDetectedEvent.cs+++ b/LarsWM.Core/Monitors/Events/NewMonitorDetectedEvent.cs@@ -1,11 +1,11 @@-using LarsWM.Core.Common.Models;-using System;-using System.Collections.Generic;-using System.Text;--namespace LarsWM.Core.Monitors.Events-{- class NewMonitorDetectedEvent : Event- {- }-}+using LarsWM.Core.Common.Models;+using System;+using System.Collections.Generic;+using System.Text;++namespace LarsWM.Core.Monitors.Events+{+ class NewMonitorDetectedEvent : Event+ {+ }+}diff --git a/LarsWM.Core/UserConfigs/SampleUserConfig.json b/LarsWM.Core/UserConfigs/SampleUserConfig.jsonindex 288c4ea6..2ddc2f98 100644--- a/LarsWM.Core/UserConfigs/SampleUserConfig.json+++ b/LarsWM.Core/UserConfigs/SampleUserConfig.json@@ -1,11 +1,11 @@-{- "gaps": {- "innerGap": 10,- "topGap": 20,- "bottomGap": 20- },- "shortcuts": {- "shiftFocusLeft": [ "mod+h" ],- "shiftFocusRight": [ "mod+j" ]- }+{+ "gaps": {+ "innerGap": 10,+ "topGap": 20,+ "bottomGap": 20+ },+ "shortcuts": {+ "shiftFocusLeft": [ "mod+h" ],+ "shiftFocusRight": [ "mod+j" ]+ }}\ No newline at end of filediff --git a/LarsWM.Core/UserConfigs/UserConfig.cs b/LarsWM.Core/UserConfigs/UserConfig.csindex 52a74e09..a8fe6612 100644--- a/LarsWM.Core/UserConfigs/UserConfig.cs+++ b/LarsWM.Core/UserConfigs/UserConfig.cs@@ -1,52 +1,52 @@-using System;-using System.Collections.Generic;-using System.Text;--namespace LarsWM.Core.UserConfigs-{- public class UserConfig- {- // TODO: allow regular expressions- // eg. for WMP's "now playing" toolbar: StartsWith("WMP9MediaBarFlyout"))- public List<string> WindowClassesToIgnore = new List<string> {- // Tray on primary screen- "Shell_TrayWnd",- // Trays on secondary screens- "Shell_SecondaryTrayWnd",- // ??- "TaskManagerWindow",- // Microsoft Text Framework service IME- "MSCTFIME UI",- // Desktop window (holds wallpaper & desktop icons)- "SHELLDLL_DefView",- // Background for lock screen- "LockScreenBackstopFrame",- // ??- "Progman",- // Windows 7 open Start Menu- "DV2ControlHost",- // Some Windows 8 thing- "Shell_CharmWindow",-- /*- * Consider adding:- * "MsgrIMEWindowClass", // Window live messenger notification- * "SysShadow", // Windows live messenger shadow-hack- * "Button", // UI component, e.g. Start Menu button- * "Frame Alternate Owner", // Edge- * "MultitaskingViewFrame", // The original Win + Tab view- */- };-- public List<string> ProcessNamesToIgnore = new List<string> {- "SearchUI",- "ShellExperienceHost",- "LockApp",- "PeopleExperienceHost",- "StartMenuExperienceHost",- };-- public int InnerGap = 20;- public int OuterGap = 20;- }-}+using System;+using System.Collections.Generic;+using System.Text;++namespace LarsWM.Core.UserConfigs+{+ public class UserConfig+ {+ // TODO: allow regular expressions+ // eg. for WMP's "now playing" toolbar: StartsWith("WMP9MediaBarFlyout"))+ public List<string> WindowClassesToIgnore = new List<string> {+ // Tray on primary screen+ "Shell_TrayWnd",+ // Trays on secondary screens+ "Shell_SecondaryTrayWnd",+ // ??+ "TaskManagerWindow",+ // Microsoft Text Framework service IME+ "MSCTFIME UI",+ // Desktop window (holds wallpaper & desktop icons)+ "SHELLDLL_DefView",+ // Background for lock screen+ "LockScreenBackstopFrame",+ // ??+ "Progman",+ // Windows 7 open Start Menu+ "DV2ControlHost",+ // Some Windows 8 thing+ "Shell_CharmWindow",++ /*+ * Consider adding:+ * "MsgrIMEWindowClass", // Window live messenger notification+ * "SysShadow", // Windows live messenger shadow-hack+ * "Button", // UI component, e.g. Start Menu button+ * "Frame Alternate Owner", // Edge+ * "MultitaskingViewFrame", // The original Win + Tab view+ */+ };++ public List<string> ProcessNamesToIgnore = new List<string> {+ "SearchUI",+ "ShellExperienceHost",+ "LockApp",+ "PeopleExperienceHost",+ "StartMenuExperienceHost",+ };++ public int InnerGap = 20;+ public int OuterGap = 20;+ }+}diff --git a/LarsWM.Core/UserConfigs/UserConfigService.cs b/LarsWM.Core/UserConfigs/UserConfigService.csindex 12e4dcf6..8067c1e0 100644--- a/LarsWM.Core/UserConfigs/UserConfigService.cs+++ b/LarsWM.Core/UserConfigs/UserConfigService.cs@@ -1,55 +1,55 @@-using System;-using System.Collections.Generic;-using System.Text;--namespace LarsWM.Core.UserConfigs-{- // TODO: Remove properties from this class once WindowsApiFacade & WindowsApiService use DI- public class UserConfigService- {- public UserConfig UserConfig { get; set; } = null;-- // TODO: allow regular expressions- // eg. for WMP's "now playing" toolbar: StartsWith("WMP9MediaBarFlyout"))- public static string[] WindowClassesToIgnore = new string[] {- // Tray on primary screen- "Shell_TrayWnd",- // Trays on secondary screens- "Shell_SecondaryTrayWnd",- // ??- "TaskManagerWindow",- // Microsoft Text Framework service IME- "MSCTFIME UI",- // Desktop window (holds wallpaper & desktop icons)- "SHELLDLL_DefView",- // Background for lock screen- "LockScreenBackstopFrame",- // ??- "Progman",- // Windows 7 open Start Menu- "DV2ControlHost",- // Some Windows 8 thing- "Shell_CharmWindow",-- /*- * Consider adding:- * "MsgrIMEWindowClass", // Window live messenger notification- * "SysShadow", // Windows live messenger shadow-hack- * "Button", // UI component, e.g. Start Menu button- * "Frame Alternate Owner", // Edge- * "MultitaskingViewFrame", // The original Win + Tab view- */- };-- public static string[] ProcessNamesToIgnore = new string[] {- "SearchUI",- "ShellExperienceHost",- "LockApp",- "PeopleExperienceHost",- "StartMenuExperienceHost",- };-- public static int InnerGap = 20;- public static int OuterGap = 20;- }-}+using System;+using System.Collections.Generic;+using System.Text;++namespace LarsWM.Core.UserConfigs+{+ // TODO: Remove properties from this class once WindowsApiFacade & WindowsApiService use DI+ public class UserConfigService+ {+ public UserConfig UserConfig { get; set; } = null;++ // TODO: allow regular expressions+ // eg. for WMP's "now playing" toolbar: StartsWith("WMP9MediaBarFlyout"))+ public static string[] WindowClassesToIgnore = new string[] {+ // Tray on primary screen+ "Shell_TrayWnd",+ // Trays on secondary screens+ "Shell_SecondaryTrayWnd",+ // ??+ "TaskManagerWindow",+ // Microsoft Text Framework service IME+ "MSCTFIME UI",+ // Desktop window (holds wallpaper & desktop icons)+ "SHELLDLL_DefView",+ // Background for lock screen+ "LockScreenBackstopFrame",+ // ??+ "Progman",+ // Windows 7 open Start Menu+ "DV2ControlHost",+ // Some Windows 8 thing+ "Shell_CharmWindow",++ /*+ * Consider adding:+ * "MsgrIMEWindowClass", // Window live messenger notification+ * "SysShadow", // Windows live messenger shadow-hack+ * "Button", // UI component, e.g. Start Menu button+ * "Frame Alternate Owner", // Edge+ * "MultitaskingViewFrame", // The original Win + Tab view+ */+ };++ public static string[] ProcessNamesToIgnore = new string[] {+ "SearchUI",+ "ShellExperienceHost",+ "LockApp",+ "PeopleExperienceHost",+ "StartMenuExperienceHost",+ };++ public static int InnerGap = 20;+ public static int OuterGap = 20;+ }+}diff --git a/LarsWM.Core/Windows/Window.cs b/LarsWM.Core/Windows/Window.csindex b1f11dff..48fd713c 100644--- a/LarsWM.Core/Windows/Window.cs+++ b/LarsWM.Core/Windows/Window.cs@@ -1,66 +1,66 @@-using LarsWM.Core.WindowsApi.DataTypes;-using System;-using System.Collections.Generic;-using System.Diagnostics;-using System.Text;-using static LarsWM.Core.WindowsApi.WindowsApiFacade;--namespace LarsWM.Core.Windows-{- public class Window- {- public Guid Id = Guid.NewGuid();- public IntPtr Hwnd { get; set; }-- public Window(IntPtr hwnd)- {- Hwnd = hwnd;- }-- public Process Process => GetProcessOfWindow(this);-- public string ClassName => GetClassNameOfWindow(this);-- public WindowRect Location => GetLocationOfWindow(this);-- public bool CanLayout => !IsWindowCloaked(this) && IsWindowManageable(this);-- public void Remove()- {- // Clear from list of windows in AppState- // Clear from WindowsInWorkspace of workspaces in AppState- }-- /// <summary>- /// This window's style flags.- /// </summary>- //public WindowStyleFlags Style- //{- // get- // {- // return unchecked((WindowStyleFlags)GetWindowLongPtr(_hwnd, (int)(GWL.GWL_STYLE)).ToInt64());- // }- // set- // {- // SetWindowLong(_hwnd, (int)GWL.GWL_STYLE, (int)value);- // }-- //}-- /// <summary>- /// This window's extended style flags.- /// </summary>- //[CLSCompliant(false)]- //public WindowExStyleFlags ExtendedStyle- //{- // get- // {- // return unchecked((WindowExStyleFlags)GetWindowLongPtr(_hwnd, (int)(GWL.GWL_EXSTYLE)).ToInt64());- // }- // set- // {- // SetWindowLong(_hwnd, (int)GWL.GWL_EXSTYLE, (int)value);- // }- //}- }-}+using LarsWM.Core.WindowsApi.DataTypes;+using System;+using System.Collections.Generic;+using System.Diagnostics;+using System.Text;+using static LarsWM.Core.WindowsApi.WindowsApiFacade;++namespace LarsWM.Core.Windows+{+ public class Window+ {+ public Guid Id = Guid.NewGuid();+ public IntPtr Hwnd { get; set; }++ public Window(IntPtr hwnd)+ {+ Hwnd = hwnd;+ }++ public Process Process => GetProcessOfWindow(this);++ public string ClassName => GetClassNameOfWindow(this);++ public WindowRect Location => GetLocationOfWindow(this);++ public bool CanLayout => !IsWindowCloaked(this) && IsWindowManageable(this);++ public void Remove()+ {+ // Clear from list of windows in AppState+ // Clear from WindowsInWorkspace of workspaces in AppState+ }++ /// <summary>+ /// This window's style flags.+ /// </summary>+ //public WindowStyleFlags Style+ //{+ // get+ // {+ // return unchecked((WindowStyleFlags)GetWindowLongPtr(_hwnd, (int)(GWL.GWL_STYLE)).ToInt64());+ // }+ // set+ // {+ // SetWindowLong(_hwnd, (int)GWL.GWL_STYLE, (int)value);+ // }++ //}++ /// <summary>+ /// This window's extended style flags.+ /// </summary>+ //[CLSCompliant(false)]+ //public WindowExStyleFlags ExtendedStyle+ //{+ // get+ // {+ // return unchecked((WindowExStyleFlags)GetWindowLongPtr(_hwnd, (int)(GWL.GWL_EXSTYLE)).ToInt64());+ // }+ // set+ // {+ // SetWindowLong(_hwnd, (int)GWL.GWL_EXSTYLE, (int)value);+ // }+ //}+ }+}