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 { 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 if (!await checkFullscreen() || _macOSCheckRestoreCounter >= 30) { _macOSCheckRestoreTimer?.cancel(); _macOSCheckRestoreTimer = null; - Timer(Duration(milliseconds: 500), () async => await closeFunc()); + Timer(Duration(milliseconds: 700), () async => await closeFunc()); } }); }