Fix crash when window title is changed on OS X and fullscreen is enabled (fix #833)

This commit is contained in:
David Capello 2015-10-19 09:26:29 -03:00
parent ec5a6fc8b3
commit 6e15553c88

View File

@ -610,8 +610,9 @@ static void osx_sys_set_window_title(AL_CONST char *title)
NSString *ns_title = [NSString stringWithUTF8String: tmp];
if (osx_window)
[osx_window setTitle: ns_title];
if (osx_window) {
[osx_window performSelectorOnMainThread:@selector(setTitle:) withObject:ns_title waitUntilDone: NO];
}
}