summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-11-03 17:18:18 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-11-04 05:39:56 +0000
commitacb2df53852fed14750f5df9f920670793ff6194 (patch)
tree990b1377a06b157f029baafd9dae3e8c014df045 /src
parentb4beca2f4e4b5e87ed7688edb29ff2b70475c1fb (diff)
iOS: Hide UIWindow before restoring mirror mode
Doing it the opposite way, by associating the new screen first, will result in the external screen not going back to mirroring the main display. Change-Id: I63970380fc4f0902af5032043809a9c1b1f9f95b Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> (cherry picked from commit 34f9da730f43c83a1a457830e33f48b7fc48ca97) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/ios/qiosviewcontroller.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/ios/qiosviewcontroller.mm b/src/plugins/platforms/ios/qiosviewcontroller.mm
index 64d42d6b65..40beda6f5f 100644
--- a/src/plugins/platforms/ios/qiosviewcontroller.mm
+++ b/src/plugins/platforms/ios/qiosviewcontroller.mm
@@ -151,8 +151,8 @@
// to mirror mode, but defer it until after the view has been removed,
// to ensure that we don't try to layout the view that's being removed.
dispatch_async(dispatch_get_main_queue(), ^{
- uiWindow.screen = [UIScreen mainScreen];
uiWindow.hidden = YES;
+ uiWindow.screen = [UIScreen mainScreen];
});
}
}