diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-12-20 11:43:42 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-12-20 11:45:51 +0100 |
commit | e80d233fd41619bdaf032bf101262ef63ad3c215 (patch) | |
tree | 556b8b461431dfc03bffbe273ff2cb32822567c3 /video | |
parent | 9f4b01400ea515b295ad9f0b92d011e80ed0389f (diff) | |
download | mpv-e80d233fd41619bdaf032bf101262ef63ad3c215.tar.bz2 mpv-e80d233fd41619bdaf032bf101262ef63ad3c215.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
Diffstat (limited to 'video')
-rw-r--r-- | video/out/cocoa_common.m | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |