Screen position bug fix#1916
Merged
flyinghead merged 2 commits intoflyinghead:devfrom Apr 28, 2025
nexus382:screen-position-bug-fix
Merged
Screen position bug fix#1916flyinghead merged 2 commits intoflyinghead:devfrom nexus382:screen-position-bug-fix
flyinghead merged 2 commits intoflyinghead:devfrom
nexus382:screen-position-bug-fix
Conversation
Contributor
|
Confirmed: this fixes the issue. Environment: two monitors setup with Windows 11, primary and secondary
Before change, flycast would be invisible, and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Flycast has a bug that happens when you have multiple monitors.
If I have 2 monitors running, and move Flycast to monitor 2, then exit, it saves so the next time you load up Flycast it will start on that screen. This is nice until you unplug the 2nd monitor before changing it back. When this happens, you can start Flycast but cannot see it, unless you press F11 to make it fullscreen, but then when you hit it again, it goes back to the screen not plugged in and cannot be seen.
I decided to add a check that verifies if the saved window position is on a currently connected display. If not, it resets the window position to the primary display, preventing Flycast from opening on a monitor that is no longer connected and becoming invisible to the user.