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

[BUG] Windowposition out of Monitor #80

Open
Reaper-EXE opened this issue May 9, 2024 · 4 comments · Fixed by #81
Open

[BUG] Windowposition out of Monitor #80

Reaper-EXE opened this issue May 9, 2024 · 4 comments · Fixed by #81
Labels
bug Something isn't working

Comments

@Reaper-EXE
Copy link

Describe the bug
When opening the soundboard, sometimes the windowposition gets set to x: -32000 y: -32000

To Reproduce
Steps to reproduce the behavior:

  1. Start computer
  2. open the soundboard

Expected behavior
Windowposition being the same as when window was closed.

Desktop (please complete the following information):

  • OS: Windows 11 Pro
  • Version 23H2
@Reaper-EXE Reaper-EXE added the bug Something isn't working label May 9, 2024
@dan0v
Copy link
Owner

dan0v commented May 15, 2024

Could you please describe your setup? Do you have multiple monitors? How are they oriented? It would also help a lot if you could send the file stored at C:\Users\{your_name}\AppData\Local\amplitude-soundboard\window-positions.json to try to get a better idea as to how to reproduce this.

@Reaper-EXE
Copy link
Author

I have 2 monitors side by side. On the left 2.560 x 1.440 and on the right 1.920 x1.080.
window-positions.json
This is fine but I don't know how to reproduce it. It just happens sometimes.

@Reaper-EXE
Copy link
Author

It happened again. Here is the file:
window-positions.json

@dan0v
Copy link
Owner

dan0v commented May 26, 2024

Thanks for the files. I was wondering if -32000 had any OS level significance, but I see that the X value is -32008 here... I'm really not sure why this might be happening and still haven't been able to reproduce it. A workaround for now could be disregarding the saved window position data if any axis is negative, since this will always lead to the window being off-screen.

@dan0v dan0v closed this as completed in #81 May 26, 2024
dan0v added a commit that referenced this issue May 26, 2024
@dan0v dan0v reopened this Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants