Restore the window title when the title bar is re-added to the window.
1.1 --- a/src/video/cocoa/SDL_cocoawindow.m Sat Feb 26 10:11:09 2011 -0800
1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m Sat Feb 26 10:15:13 2011 -0800
1.3 @@ -825,6 +825,11 @@
1.4 [nswindow setContentSize:rect.size];
1.5 s_moveHack = SDL_GetTicks();
1.6
1.7 + /* When the window style changes the title is cleared */
1.8 + if (!fullscreen) {
1.9 + Cocoa_SetWindowTitle(_this, window);
1.10 + }
1.11 +
1.12 #ifdef FULLSCREEN_TOGGLEABLE
1.13 if (fullscreen) {
1.14 /* OpenGL is rendering to the window, so make it visible! */