-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple monitors: Position a space on a specific monitor #554
Comments
Possible implementation:
Let's think on scenarios.
In the case the default Bloc host is Morphic, not SDL, then 2. has no effect. |
Hi!
This question also concern window placement and moving after starting the application. |
Okay, for extra info, I see: https://wiki.libsdl.org/SDL2/SDL_GetDisplayName, to get a String https://wiki.libsdl.org/SDL2/SDL_GetDisplayDPI, to get:
https://wiki.libsdl.org/SDL2/SDL_GetNumDisplayModes and https://wiki.libsdl.org/SDL2/SDL_GetDisplayMode, to get a list of:
https://wiki.libsdl.org/SDL2/SDL_DisplayOrientation, to get one of:
|
Wow awesome! |
I looked at how it would be to support multiple monitors with SDL2 host. I did this "research" from a question of @labordep in #507
This is a tutorial about this:
https://lazyfoo.net/tutorials/SDL/37_multiple_displays/index.php
Apparently it's as simple as knowing the number of monitors with:
https://wiki.libsdl.org/SDL2/SDL_GetNumVideoDisplays ,
and then you ask for each monitors bound (a rectangle):
https://wiki.libsdl.org/SDL2/SDL_GetDisplayBounds
and finally, you set the window position at e.g.
(monitorBounds at: 2) origin + aSpace positionInMonitor
The text was updated successfully, but these errors were encountered: