Comments (6)
More generally, winit should provide an additional flag to let the OS position the window itself.
from winit.
Can I take this issue? I plan to implement set_outer_position
into WindowAttributes
from winit.
@garasubo There's actually a WIP PR to add this (#1240), but it never got a macOS implementation so it hasn't been merged. If you'd like to move that PR onto the latest master and add in that implementation, that'd be great!
from winit.
Oh, good to know. Unfortunately, I don't have macOS environment, though.
from winit.
Just a set_outer_position isn't enough. Is there a way to get the screen size?
from winit.
Just a set_outer_position isn't enough. Is there a way to get the screen size?
See https://docs.rs/winit/latest/winit/window/struct.Window.html#method.available_monitors
and https://docs.rs/winit/latest/winit/monitor/struct.MonitorHandle.html#method.size.
from winit.
Related Issues (20)
- System Theme vs Window Theme HOT 3
- Consider using x11 crate (static linking) instead of x11-dl or provide a feature to use x11
- Extension to report "primary" pointer up/down events on Android? HOT 1
- Get physical size of a monitor/window in millimeters HOT 1
- Add support for xdg-toplevel-icon v1
- Cursor icon doesn't follow system cursor theme HOT 5
- Scaling broke on Wayland (between version `0.28.7` and `0.29.15`): the window is twice the size it should be when the scaling factor is `2` HOT 1
- Opaque/On-Demand Data HOT 2
- X11_BACKEND.lock() fails
- Web: make use of `PointerEvent.persistentDeviceId`
- IME callback crashes application HOT 2
- Documentation doesn't explain how to create an ActiveEventLoop HOT 3
- error when creating a swapchain on Wayland HOT 4
- Allow hiding menu bar on macOS when using `Fullscreen::Borderless`
- Docs.rs build failure on v0.30.5 HOT 2
- EventLoop::new() has NotSupported Err value HOT 6
- Allow returning `HITMAXBUTTON` from `WM_NCHITTEST` for Windows snap layout support HOT 5
- Coordinate systems HOT 3
- Composing text display when input Chinese
- MacOS: non-activating window HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winit.