This commit is contained in:
Daniel 2024-05-17 09:59:11 +08:00
parent f7d23b41fd
commit 1e2765962e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -278,10 +278,10 @@ const initMainWindow = () => {
windowState.width = Math.min(defaultWidth, workArea.width);
windowState.height = Math.min(defaultHeight, workArea.height);
}
if (x > workArea.width) {
if (x >= workArea.width * 0.8) {
x = 0;
}
if (y > workArea.height) {
if (y >= workArea.height * 0.8) {
y = 0;
}
}