mirror of https://github.com/mpv-player/mpv
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:
parent
9f4b01400e
commit
e80d233fd4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue