-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[SDL3]SDL_SetWindowFullscreen makes the window fullscreen on the wrong monitor #11571
Comments
Just to check, are you setting a video mode with |
No, it's default windowed borderless fullscreen, I'm not switching to exclusive fullscreen. If the show window contents is is enabled this issue doesn't arise instead |
Found the issue, and working on a fix now. This uncovered an edge case on other platforms as well, where the window will be made fullscreen on the wrong display if a maximized window is moved to another display by the window manager. |
I retested this interaction on the latest sdl3 release, and it seems to be wrong again (it was working on sdl 3.1.8 and 3.1.10), but already in sdl 3.2.0 it starts behaving with this broken behaviour again |
@Kontrabant, can you take a look? |
Will do. |
After dragging, the maximized window is made fullscreen on the correct display, but it is put on the wrong display when leaving fullscreen due to the fix needed for #12006. Working on it now. |
The regression should be fixed now, without regressing #12006 either. |
Can confirm it works properly on the current master branch |
On Windows, if "Show window contents while dragging" is disabled, moving a non maximized window from one screen to another and snapping it to maximized, will make a subsequent call to
SDL_SetWindowFullscreen
maximize it to the monitor it was previously in, instead of the current one, this works properly on SDL2The text was updated successfully, but these errors were encountered: