diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 7695cb09..fc742cd6 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -7,6 +7,14 @@ Features/Enhancements: #928: Add context menu items to 'Close all but this' and 'Close all tabs to the right' +1.76.11 (2018-10-18): + +Fixes: +------ +#1139: Feature "Reconnect to previously opened sessions" not working +#1136: Putty window not maximized + + 1.76.10 (2018-10-07): Fixes: diff --git a/CREDITS.TXT b/CREDITS.TXT index 8b53c62e..f1503a64 100644 --- a/CREDITS.TXT +++ b/CREDITS.TXT @@ -24,6 +24,7 @@ github.com/pfjason github.com/sirLoaf github.com/Fyers Vladimir Semenov (github.com/sli-pro) +Stephan (github.com/st-schuler) Aleksey Reytsman (github.com/areytsman) diff --git a/mRemoteV1/Connection/Protocol/PuttyBase.cs b/mRemoteV1/Connection/Protocol/PuttyBase.cs index cc18f610..00469872 100644 --- a/mRemoteV1/Connection/Protocol/PuttyBase.cs +++ b/mRemoteV1/Connection/Protocol/PuttyBase.cs @@ -199,7 +199,14 @@ namespace mRemoteNG.Connection.Protocol { return; } - NativeMethods.MoveWindow(PuttyHandle, -SystemInformation.FrameBorderSize.Width, -(SystemInformation.CaptionHeight + SystemInformation.FrameBorderSize.Height), InterfaceControl.Width + SystemInformation.FrameBorderSize.Width * 2, InterfaceControl.Height + SystemInformation.CaptionHeight + SystemInformation.FrameBorderSize.Height * 2, true); + + var left = -(SystemInformation.FrameBorderSize.Width + SystemInformation.HorizontalResizeBorderThickness); + var top = -(SystemInformation.CaptionHeight + SystemInformation.FrameBorderSize.Height + SystemInformation.VerticalResizeBorderThickness); + var width = InterfaceControl.Width + (SystemInformation.FrameBorderSize.Width + SystemInformation.HorizontalResizeBorderThickness) * 2; + var height = InterfaceControl.Height + SystemInformation.CaptionHeight + + (SystemInformation.FrameBorderSize.Height + SystemInformation.VerticalResizeBorderThickness) * 2; + + NativeMethods.MoveWindow(PuttyHandle, left, top, width, height, true); } catch (Exception ex) {