8000 WindowOptions.Position is not respected · Issue #1070 · dotnet/Silk.NET · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
WindowOptions.Position is not respected #1070
Closed
@DarthAffe

Description

@DarthAffe

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:
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0