From 4e860c011314ffe78dc12a426f4711b830a15e8e 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 @@ - (void)rightMouseDown:(NSEvent *)theEvent [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! */