intiface / intiface-central

Intiface Central (Buttplug Frontend) Application for Desktop and Mobile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

False positive check for window outside bounds

Furimanejo opened this issue · comments

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

commented

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.