src/video/cocoa/SDL_cocoawindow.m
changeset 6426 38ed71d9ae5f
parent 6422 fd0ac1b56115
child 6489 31449ea8f934
--- a/src/video/cocoa/SDL_cocoawindow.m	Fri Sep 14 11:09:13 2012 -0400
+++ b/src/video/cocoa/SDL_cocoawindow.m	Fri Sep 14 11:36:36 2012 -0400
@@ -830,6 +830,9 @@
     NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
     if ([nswindow respondsToSelector:@selector(setStyleMask:)]) {
         [nswindow setStyleMask:GetWindowStyle(window)];
+        if (bordered) {
+            Cocoa_SetWindowTitle(_this, window);  // this got blanked out.
+        }
     }
     [pool release];
 #endif