fix(macos): sync restored fullscreen chrome

This commit is contained in:
edde746
2026-05-09 11:35:36 +02:00
parent bb66ab6526
commit afda61119e
8 changed files with 112 additions and 36 deletions
+5 -3
View File
@@ -167,7 +167,11 @@ Future<void> _bootstrapApp() async {
final futures = <Future<void>>[];
if (PlatformDetector.isDesktopOS()) {
futures.add(windowManager.ensureInitialized());
if (Platform.isMacOS) {
futures.add(windowManager.ensureInitialized().then((_) => MacOSWindowService.setupCustomTitlebar()));
} else {
futures.add(windowManager.ensureInitialized());
}
}
// Initialize TV detection (Android leanback or Apple TV) and PiP on Android.
@@ -178,8 +182,6 @@ Future<void> _bootstrapApp() async {
PipService();
}
futures.add(MacOSWindowService.setupCustomTitlebar());
// Hook Windows native fullscreen callback (no-op elsewhere).
NativeWindowService.initialize();