Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix, macos, remote fullscreen state, debug

dignow296ebd0341bd
diff --git a/flutter/lib/desktop/pages/remote_tab_page.dart b/flutter/lib/desktop/pages/remote_tab_page.dart
index cb9438465..063fe49d8 100644
--- a/flutter/lib/desktop/pages/remote_tab_page.dart
+++ b/flutter/lib/desktop/pages/remote_tab_page.dart
@@ -112,10 +112,7 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
windowOnTop(windowId());
if (tabController.length == 0) {
if (Platform.isMacOS && stateGlobal.closeOnFullscreen) {
- Timer(
- Duration(milliseconds: 300),
- () async => await WindowController.fromWindowId(windowId())
- .setFullscreen(true));
+ stateGlobal.setFullscreen(true);
}
}
ConnectionTypeState.init(id);
diff --git a/flutter/lib/desktop/widgets/tabbar_widget.dart b/flutter/lib/desktop/widgets/tabbar_widget.dart
index 2dcd757a1..be089559b 100644
--- a/flutter/lib/desktop/widgets/tabbar_widget.dart
+++ b/flutter/lib/desktop/widgets/tabbar_widget.dart
@@ -591,7 +591,7 @@ class WindowActionPanelState extends State<WindowActionPanel>
if (!await checkFullscreen() || _macOSCheckRestoreCounter >= 30) {
_macOSCheckRestoreTimer?.cancel();
_macOSCheckRestoreTimer = null;
- Timer(Duration(milliseconds: 500), () async => await closeFunc());
+ Timer(Duration(milliseconds: 700), () async => await closeFunc());
}
});
}