diff --git a/src/Native/Windows.cs b/src/Native/Windows.cs index e936293f..b6c9bd59 100644 --- a/src/Native/Windows.cs +++ b/src/Native/Windows.cs @@ -78,16 +78,6 @@ namespace SourceGit.Native } } - private void ExtendWindowFrame(Window w) - { - var platformHandle = w.TryGetPlatformHandle(); - if (platformHandle == null) - return; - - var margins = new MARGINS { cxLeftWidth = 1, cxRightWidth = 1, cyTopHeight = 1, cyBottomHeight = 1 }; - DwmExtendFrameIntoClientArea(platformHandle.Handle, ref margins); - } - public string FindGitExecutable() { var reg = Microsoft.Win32.RegistryKey.OpenBaseKey( @@ -220,6 +210,16 @@ namespace SourceGit.Native Process.Start(start); } + private void ExtendWindowFrame(Window w) + { + var platformHandle = w.TryGetPlatformHandle(); + if (platformHandle == null) + return; + + var margins = new MARGINS { cxLeftWidth = 1, cxRightWidth = 1, cyTopHeight = 1, cyBottomHeight = 1 }; + DwmExtendFrameIntoClientArea(platformHandle.Handle, ref margins); + } + // There are two versions of PowerShell : pwsh.exe (preferred) and powershell.exe (system default) private string ChoosePowerShell() {