dan0v / AmplitudeSoundboard

A sleek, cross-platform soundboard, available for Windows, MacOS, and Linux
https://amplitude-soundboard.dan0v.com
GNU General Public License v3.0
77 stars 9 forks source link

[BUG] Windowposition out of Monitor #80

Open Reaper-EXE opened 4 months ago

Reaper-EXE commented 4 months ago

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):

dan0v commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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

dan0v commented 3 months ago

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.