From 9c8d95eab0f2fb37d8b70b2192e3503581a25e84 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 26 Feb 2011 10:15:13 -0800 Subject: [PATCH] Restore the window title when the title bar is re-added to the window. --- src/video/cocoa/SDL_cocoawindow.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index 6210d4572..353864b0f 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -825,6 +825,11 @@ Cocoa_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display [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! */