[Scummvm-git-logs] scummvm master -> 6ef16dcc04a8cd5648284d772cb25b6db61c52a7

larsamannen noreply at scummvm.org
Fri Mar 27 21:14:16 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
6ef16dcc04 IOS7: Fix airplay mirroring to external displays


Commit: 6ef16dcc04a8cd5648284d772cb25b6db61c52a7
    https://github.com/scummvm/scummvm/commit/6ef16dcc04a8cd5648284d772cb25b6db61c52a7
Author: Lars Sundström (l.sundstrom at gmail.com)
Date: 2026-03-27T22:14:12+01:00

Commit Message:
IOS7: Fix airplay mirroring to external displays

A user can mirror the device screen to an external display using
Airplay screen mirroring. When changing to a UIScene based window
handling it caused mirroring to adapt the application window to
only be displayed on the external screen while the device screen
got blank.

Fix this by not assigning scenes to external displays. This will
default to mirror the device screen.

Changed paths:
    backends/platform/ios7/ios7_scene_delegate.mm


diff --git a/backends/platform/ios7/ios7_scene_delegate.mm b/backends/platform/ios7/ios7_scene_delegate.mm
index 07ab3a8fa26..2f92bd0392c 100644
--- a/backends/platform/ios7/ios7_scene_delegate.mm
+++ b/backends/platform/ios7/ios7_scene_delegate.mm
@@ -29,7 +29,11 @@ API_AVAILABLE(ios(13.0))
 - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions {
 
 	UIWindowScene *windowScene = (UIWindowScene *)scene;
-	[iOS7AppDelegate setKeyWindow:[[UIWindow alloc] initWithWindowScene:windowScene]];
+	// External displays should not get assigned a window.
+	// When a window isn't assigned, the default behavior is mirroring.
+	if (session.role != UIWindowSceneSessionRoleExternalDisplay) {
+		[iOS7AppDelegate setKeyWindow:[[UIWindow alloc] initWithWindowScene:windowScene]];
+	}
 }
 
 - (void)sceneDidDisconnect:(UIScene *)scene {




More information about the Scummvm-git-logs mailing list