Skip to content
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

Window doesn't adjust position after reopening the program with a different desktop screen laytout #392

Open
AsparagusEduardo opened this issue Feb 12, 2023 · 1 comment

Comments

@AsparagusEduardo
Copy link

AsparagusEduardo commented Feb 12, 2023

LibreSprite version
1.2-973d0e3d-SDL
Describe the bug

When closing the application with 3-screen layout (laptop screen + 2 monitors) and reloading it to a single screen layout (laptop screen), the application is offscreen.

To Reproduce
  • Have the laptop screen be the left-most screen of the 3, then the 2 extra monitors to the right of it.
  • Have the center screen be set as primary screen.
  • Move the Libresprite window to the laptop screen and close it.
  • Disconnect the 2 monitors to switch to a single-screen layout.
  • Reopen Libresprite.

Based on #344, I looked into the AppData settings in %AppData%\LibreSprite and WindowLayout was set to 2 -1883 896.
Changing -1883 to 0 brought the window back to the main screen.

Expected behaviour

Upon loading the application, check for screen layout to see if it needs to readjust and not be offscreen.

OS/Hardware
  • Operative System: Windows 10 version 10.0.19044
  • CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2803 Mhz
  • GPU: Intel(R) Iris(R) Xe Graphics
Screenshots

image
image
image

@AsparagusEduardo AsparagusEduardo changed the title Application doesn't load UI when opening Window doesn't adjust position after reopening the program with a different desktop screen laytout Feb 13, 2023
@AsparagusEduardo
Copy link
Author

Modified the title and description based on my discoveries from testing the proposed solution in #344.

Might be marked as a duplicate, but I'll leave that to your discretion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant