diff options
author | Andy Shaw <andy.shaw@digia.com> | 2012-11-07 14:46:26 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-08 06:35:46 +0100 |
commit | 38545380e4dfa8d161b9db614d63f16394923f66 (patch) | |
tree | 046e397528aae62f79f988ee1c2526dabd152e42 | |
parent | fdd94ef17ccd5e41b5aa31fe1457027dcae8059f (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 <morten.sorvig@digia.com>
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoawindow.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm index c1c5f49d3f..a7626032df 100644 --- a/src/plugins/platforms/cocoa/qcocoawindow.mm +++ b/src/plugins/platforms/cocoa/qcocoawindow.mm @@ -717,7 +717,9 @@ void QCocoaWindow::setNSWindow(NSWindow *window) name:nil // Get all notifications object:m_nsWindow]; + [m_contentView setPostsFrameChangedNotifications: NO]; [window setContentView:m_contentView]; + [m_contentView setPostsFrameChangedNotifications: YES]; } void QCocoaWindow::clearNSWindow(NSWindow *window) |