cocoa: mark window for redraw after title change

This used to work correctly without the call to displayIfNeeded. I think this
may only be needed for Yosemite.

Fixes #1330
This commit is contained in:
Stefano Pigozzi 2014-12-20 11:43:42 +01:00
parent 9f4b01400e
commit e80d233fd4
1 changed files with 3 additions and 1 deletions

View File

@ -387,8 +387,10 @@ static int cocoa_set_window_title(struct vo *vo, const char *title)
void *talloc_ctx = talloc_new(NULL);
struct bstr btitle = bstr_sanitize_utf8_latin1(talloc_ctx, bstr0(title));
NSString *nstitle = [NSString stringWithUTF8String:btitle.start];
if (nstitle)
if (nstitle) {
[s->window setTitle: nstitle];
[s->window displayIfNeeded];
}
talloc_free(talloc_ctx);
return VO_TRUE;
}