new on_top not work on macos

This commit is contained in:
rustdesk 2023-07-07 21:57:52 +08:00
parent 54d03b2ecf
commit 53fdddb1a9

View File

@ -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);