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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy