Open
Description
Hi,
I'm developing app size/position size&position persistence by shared_preference on windows and linux platforms . On windows platform all work great.
On linux I'm having some issues:
- WindowListener.onWindowMove and WindowListener.onWindowMoved are called on app window focus and aren't called on window move:
@override
void onWindowMove() {
_platform.savePosition();
}
@override
void onWindowMoved() {
_platform.savePosition();
}
- inside method
_platform.savePosition();
the call tofinal Offset pos = await windowManager.getPosition();
always returnOffset(26.0, 23.0)
moving and dragging my app window
@override
Future<void> savePosition() async {
final Offset pos = await windowManager.getPosition();
await PlatformUtils.prefs.setDouble(PREF_MAINWIN_POSX, pos.dx);
await PlatformUtils.prefs.setDouble(PREF_MAINWIN_POSY, pos.dy);
print("save-pos: ${pos.dx} ${pos.dy}");
}
I'm working with flutter 3.24.0 and window_manager: 0.4.2 on Debian 11.
Is there a workaround to these issues ? Or better, a patch ?
Thanks,
Marco
Metadata
Metadata
Assignees
Labels
No labels