Skip to content
Snippets Groups Projects
Commit 8c3d2f76 authored by Camilla Löwy's avatar Camilla Löwy
Browse files

Cocoa: Fix duplicate conversion of title string

(cherry picked from commit a875a536)
parent 2b1e2d2e
No related branches found
No related tags found
No related merge requests found
......@@ -967,10 +967,11 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window)
void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char *title)
{
@autoreleasepool {
[window->ns.object setTitle:@(title)];
NSString* string = @(title);
[window->ns.object setTitle:string];
// HACK: Set the miniwindow title explicitly as setTitle: doesn't update it
// if the window lacks NSWindowStyleMaskTitled
[window->ns.object setMiniwindowTitle:@(title)];
[window->ns.object setMiniwindowTitle:string];
} // autoreleasepool
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment