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 53991e2a82a66df8
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
     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! */