Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Restore Cocoa title bar caption when adding border to a window.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 14, 2012
1 parent 4d2149d commit 079c9bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -830,6 +830,9 @@ - (void)rightMouseDown:(NSEvent *)theEvent
NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
if ([nswindow respondsToSelector:@selector(setStyleMask:)]) {
[nswindow setStyleMask:GetWindowStyle(window)];
if (bordered) {
Cocoa_SetWindowTitle(_this, window); // this got blanked out.
}
}
[pool release];
#endif
Expand Down

0 comments on commit 079c9bf

Please sign in to comment.