diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index bde2ed88a..43c6dfadf 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -318,7 +318,7 @@ SetWindowStyle(SDL_Window * window, NSUInteger style) { NSNotificationCenter *center; NSWindow *window = data->nswindow; - NSView *view = data->nsview; + NSView *view = data->sdlContentView; _data = data; observingVisible = YES;