From 53fdddb1a9bf3a289f5d329d270030950a74dce0 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 7 Jul 2023 21:57:52 +0800 Subject: [PATCH] new on_top not work on macos --- flutter/lib/common.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index a4e46e9bd36a..a3b175001515 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -552,7 +552,7 @@ void window_on_top(int? id) async { if (id == null) { print("Bring window on top"); // main window - if (desktopType == DesktopType.cm && + if (!Platform.isMacOS && desktopType == DesktopType.cm && !(await windowManager.isMinimized() || !await windowManager.isVisible())) { await windowManager.setAlwaysOnTop(true);