mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
fix: try workaround, macos, subwindow, frozen (#8729)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -141,7 +141,17 @@ class RustDeskMultiWindowManager {
|
||||
));
|
||||
}
|
||||
if (isMacOS) {
|
||||
Future.microtask(() => windowController.show());
|
||||
Future.microtask(() {
|
||||
windowController.show();
|
||||
// Manually simulate the hide/show event to fix the issue
|
||||
// https://github.com/rustdesk/rustdesk/issues/8548
|
||||
// https://github.com/flutter/flutter/issues/133533
|
||||
// https://github.com/MixinNetwork/flutter-plugins/issues/289#issuecomment-1817665239
|
||||
// https://github.com/rustdesk/rustdesk/pull/8712#issuecomment-2229912473
|
||||
Future.delayed(const Duration(milliseconds: 300), () {
|
||||
DesktopMultiWindow.hideShow(-1);
|
||||
});
|
||||
});
|
||||
}
|
||||
registerActiveWindow(windowId);
|
||||
windows.add(windowId);
|
||||
|
||||
Reference in New Issue
Block a user