From 3cf5ef7fe51882c2671772f0dc9a6297e898d6bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Fri, 2 Nov 2012 15:21:19 +0100 Subject: [PATCH] Cocoa: Disable malfunctioning updateScreens(). The current updateScreens() implementations deletes QScreens and creates new ones. Deleting a QScreen hides all its windows. The result is that Qt windows disappears when applicationDidChangeScreenParameters is called. Change-Id: I5870d025d2bbf36621817cb220a835d1a6b367dc Reviewed-by: Richard Moe Gustavsen --- src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm b/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm index 3023100..d44ff0f 100644 --- a/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm +++ b/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm @@ -344,12 +344,6 @@ static void cleanupCocoaApplicationDelegate() */ } -- (void)applicationDidChangeScreenParameters:(NSNotification *)notification -{ - Q_UNUSED(notification); - ((QCocoaIntegration*)QGuiApplicationPrivate::platformIntegration())->updateScreens(); -} - - (void)setReflectionDelegate:(NSObject *)oldDelegate { [oldDelegate retain]; -- 2.7.4