opt: ui & cursor

- opt: win7 frameless
- opt: disable cursor output & macos free cache
- opt: main window, set location before show/hide
This commit is contained in:
Kingtous
2022-11-29 23:03:16 +08:00
parent da88d5c0b8
commit 8a4f8e202d
7 changed files with 65 additions and 18 deletions

View File

@@ -496,16 +496,6 @@ class _DesktopHomePageState extends State<DesktopHomePage>
// initTray();
trayManager.addListener(this);
rustDeskWinManager.registerActiveWindowListener(onActiveWindowChanged);
// main window may be hidden because of the initial uni link or arguments.
// note that we must wrap this active window registration in future because
// we must ensure the execution is after `windowManager.hide/show()`.
Future.delayed(Duration.zero, () {
windowManager.isVisible().then((visibility) {
if (visibility) {
rustDeskWinManager.registerActiveWindow(kWindowMainId);
}
});
});
rustDeskWinManager.setMethodHandler((call, fromWindowId) async {
debugPrint(