src/video/cocoa/SDL_cocoawindow.m
changeset 9790 d968c87f2a5d
parent 9685 525f13ccf27f
child 9795 63c4d6f1f85f
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Tue Jun 30 15:00:48 2015 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Tue Jun 30 19:30:02 2015 -0700
     1.3 @@ -1456,6 +1456,11 @@
     1.4  
     1.5          if ([nswindow respondsToSelector: @selector(setStyleMask:)]) {
     1.6              [nswindow performSelector: @selector(setStyleMask:) withObject: (id)(uintptr_t)GetWindowStyle(window)];
     1.7 +
     1.8 +            /* Hack to restore window decorations on Mac OS X 10.10 */
     1.9 +            NSRect frameRect = [nswindow frame];
    1.10 +            [nswindow setFrame:NSMakeRect(frameRect.origin.x, frameRect.origin.y, frameRect.size.width + 1, frameRect.size.height) display:NO];
    1.11 +            [nswindow setFrame:frameRect display:NO];
    1.12          } else {
    1.13              nswindow = Cocoa_RebuildWindow(data, nswindow, GetWindowStyle(window));
    1.14          }