path: root/src
diff options
authorAndy Shaw <>2012-11-07 14:46:26 +0100
committerThe Qt Project <>2012-11-08 06:35:46 +0100
commit38545380e4dfa8d161b9db614d63f16394923f66 (patch)
tree046e397528aae62f79f988ee1c2526dabd152e42 /src
parentfdd94ef17ccd5e41b5aa31fe1457027dcae8059f (diff)
Prevent frame notifications going out when the content view is set
When the content view is set it will trigger a frame notification which we do not want to see because it would put our internal data on the geometry out of sync. So ignore the notification until after it is set. Change-Id: I704c2f186c8b0c6508a90d5dab51b7f6f02162fc Reviewed-by: Morten Johan Sørvig <>
Diffstat (limited to 'src')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/ b/src/plugins/platforms/cocoa/
index c1c5f49d3f..a7626032df 100644
--- a/src/plugins/platforms/cocoa/
+++ b/src/plugins/platforms/cocoa/
@@ -717,7 +717,9 @@ void QCocoaWindow::setNSWindow(NSWindow *window)
name:nil // Get all notifications
+ [m_contentView setPostsFrameChangedNotifications: NO];
[window setContentView:m_contentView];
+ [m_contentView setPostsFrameChangedNotifications: YES];
void QCocoaWindow::clearNSWindow(NSWindow *window)