summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-12-20 11:43:42 +0100
committerAlessandro Ghedini <alessandro@ghedini.me>2015-01-14 16:17:05 +0100
commitf88a86a936ce95ea87ed0514cad960a172c14e75 (patch)
tree000ccd55b844425730f5518121338fe65a76ba34
parent1783e8cadecb5992a050a10f89e9b397b08d1ddb (diff)
downloadmpv-f88a86a936ce95ea87ed0514cad960a172c14e75.tar.bz2
mpv-f88a86a936ce95ea87ed0514cad960a172c14e75.tar.xz
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
-rw-r--r--video/out/cocoa_common.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index 32d190aa82..420fd19025 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;
}