From e80d233fd41619bdaf032bf101262ef63ad3c215 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 20 Dec 2014 11:43:42 +0100 Subject: 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 --- video/out/cocoa_common.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 98c352be9f..6f4603b65f 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -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; } -- cgit v1.2.3