gl/cocoa: make sure to turn on frame rectangle changes notifications

Default value of property postsFrameChangedNotifications is YES
but it is worth to explicitly enable it.
This commit is contained in:
Julien Isorce 2014-11-03 23:07:34 +00:00 committed by Tim-Philipp Müller
parent 4a736caded
commit f44b430bc7

View file

@ -493,6 +493,7 @@ close_window_cb (gpointer data)
#endif
/* Get notified about changes */
[self setPostsFrameChangedNotifications:YES];
[[NSNotificationCenter defaultCenter] addObserver: self selector:@selector(reshape:) name: NSViewFrameDidChangeNotification object: self];
[self setWantsBestResolutionOpenGLSurface:YES];