diff --git a/Source/OpenTK/Platform/Windows/WinGLNative.cs b/Source/OpenTK/Platform/Windows/WinGLNative.cs index 18cbd3dd..1d8d7498 100644 --- a/Source/OpenTK/Platform/Windows/WinGLNative.cs +++ b/Source/OpenTK/Platform/Windows/WinGLNative.cs @@ -730,7 +730,11 @@ namespace OpenTK.Platform.Windows } set { - ClientSize = value.Size; + WindowStyle style = (WindowStyle)Functions.GetWindowLong(window.WindowHandle, GetWindowLongOffsets.STYLE); + Win32Rectangle rect = Win32Rectangle.From(value); + Functions.AdjustWindowRect(ref rect, style, false); + Location = new Point(rect.left, rect.top); + Size = new Size(rect.Width, rect.Height); } } diff --git a/Source/OpenTK/Platform/X11/X11GLNative.cs b/Source/OpenTK/Platform/X11/X11GLNative.cs index c64ea7c6..ce5154a0 100644 --- a/Source/OpenTK/Platform/X11/X11GLNative.cs +++ b/Source/OpenTK/Platform/X11/X11GLNative.cs @@ -994,6 +994,8 @@ namespace OpenTK.Platform.X11 { using (new XLock(window.Display)) { + Functions.XMoveWindow(window.Display, window.WindowHandle, + value.X, value.Y); Functions.XResizeWindow(window.Display, window.WindowHandle, value.Width, value.Height); }