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

False positive check for window outside bounds #110

Open
Furimanejo opened this issue Nov 5, 2023 · 1 comment
Open

False positive check for window outside bounds #110

Furimanejo opened this issue Nov 5, 2023 · 1 comment

Comments

@Furimanejo
Copy link

logInfo("Window position out of bounds, resetting position");

with shared_preferences stating:

"flutter.gui_window_posx":1920,"flutter.gui_window_posy":0,"flutter.gui_window_width":800,"flutter.gui_window_height":600

the window checks as outside bounds and logs:

0.022 : [I] : [I] Global Loggy: Testing window position Offset(1920.0, 0.0) against \.\DISPLAY1 (Size(1474.0, 864.0) Offset(62.0, 0.0)).message
0.022 : [I] : [I] Global Loggy: Testing window position Offset(1920.0, 0.0) against \.\DISPLAY4 (Size(1440.0, 900.0) Offset(1920.0, 0.0)).message
0.022 : [I] : [I] Global Loggy: Window position out of bounds, resetting position.message

@qdot
Copy link
Contributor

qdot commented Jan 21, 2024

I still haven't had a chance to sit down and figure out what all is up with multiple displays, and I'm currently without multiple displays myself anyways, so I've added a toggle in 2.5.5 for just turning off window position resetting. With that off, the window will also snap to 0,0 on the main monitor. I hope.

Leaving this open as I would like to get this completely fixed at some point.

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

No branches or pull requests

2 participants