fix: macos tab drag (#8242)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2024-06-02 10:56:29 +08:00
committed by GitHub
parent 32346c23e0
commit 32ef5f47f8
3 changed files with 21 additions and 1 deletions

View File

@@ -95,6 +95,7 @@ Future<void> main(List<String> args) async {
desktopType = DesktopType.main;
await windowManager.ensureInitialized();
windowManager.setPreventClose(true);
windowManager.setMovable(false);
runMainApp(true);
}
}
@@ -167,6 +168,7 @@ void runMultiWindow(
final title = getWindowName();
// set prevent close to true, we handle close event manually
WindowController.fromWindowId(kWindowId!).setPreventClose(true);
WindowController.fromWindowId(kWindowId!).setMovable(false);
late Widget widget;
switch (appType) {
case kAppTypeDesktopRemote: