Restore the window title when the title bar is re-added to the window.
authorSam Lantinga <slouken@libsdl.org>
Sat, 26 Feb 2011 10:15:13 -0800
changeset 5399 1e2a82a66df8
parent 5398 83816c8a2b58
child 5400 1df8b8a20191
Restore the window title when the title bar is re-added to the window.
src/video/cocoa/SDL_cocoawindow.m
--- a/src/video/cocoa/SDL_cocoawindow.m	Sat Feb 26 10:11:09 2011 -0800
+++ b/src/video/cocoa/SDL_cocoawindow.m	Sat Feb 26 10:15:13 2011 -0800
@@ -825,6 +825,11 @@
     [nswindow setContentSize:rect.size];
     s_moveHack = SDL_GetTicks();
 
+    /* When the window style changes the title is cleared */
+    if (!fullscreen) {
+        Cocoa_SetWindowTitle(_this, window);
+    }
+
 #ifdef FULLSCREEN_TOGGLEABLE
     if (fullscreen) {
         /* OpenGL is rendering to the window, so make it visible! */