Closed
Description
Summary
Setting the Position in the WindowOptions used to create a window does not change anything.
Other Options work fine.
Steps to reproduce
- Platform: Desktop (Win 10)
- Framework Version: .NET6
It's 100% reproducible for me using this code in the Program.cs of a ConsoleApplication referencing the current NuGet (2.16.0) of Silk.NET
using Silk.NET.Maths;
using Silk.NET.Windowing;
WindowOptions options = WindowOptions.Default;
options.Position = new Vector2D<int>(1000, 0);
// These two work as expected (they don't have any impact on the problem)
options.Size = new Vector2D<int>(1280, 1440);
options.WindowBorder = WindowBorder.Hidden;
Window.Create(options).Run();
Comments
A borderless window appears always in the top left (0,0), the position of windows with border seems to be somehow dependant of the mouse position on startup.
Checking the Position of the Window in the debugger before running it returns the expected value: