Center Window on Windows #4876
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Bug
An unexpected or incorrect behavior
O-MacOS
Specific to the MacOS (Apple) desktop operating system
O-Windows
Specific to the Windows desktop operating system
What problem does this solve or what need does it fill?
The window is not currently centered on Windows, but is on MacOS. This is inconsistent and can be pretty annoying.
What solution would you like?
The window to be centered by default, or for there to be a
WindowDescriptor
field and orWindow
method that centers the window. Theposition
does not help here, since it can't be centered before the window is created and shown.What alternative(s) have you considered?
I have tried setting the
position
in a startup system to get around this, based on the window size. This does work, but it is off-center for around a second which looks particularly bad.I believe there is a way to do this in
winit
, but this is something that should be part of theWindow
API and not require using platform-specific code for.The text was updated successfully, but these errors were encountered: