From 135ba132a84a4fdc48b186c75f724c03cc310efb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 15 Jul 2014 21:33:19 +0200 Subject: [PATCH] cocoa: fix regression preventing window resize I introduced this bug in b5bbb49. Sorry! This could fix #943 and #930 even though I can't reproduce those specific bugs. --- video/out/cocoa_common.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 2a699b8d51..4009f6cb26 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -424,8 +424,10 @@ int vo_cocoa_config_window(struct vo *vo, uint32_t flags, void *gl_ctx) s->old_dwidth = width; s->old_dheight = height; - if (!(flags & VOFLAG_HIDDEN) && !s->window) { + if (!(flags & VOFLAG_HIDDEN) && !s->window) create_window(vo, &geo.win, geo.flags); + + if (s->window) { if (reset_size) [s->window queueNewVideoSize:NSMakeSize(width, height)]; cocoa_set_window_title(vo, vo_get_window_title(vo));