mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user