diff options
Diffstat (limited to 'video/out/cocoa_common.m')
-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 4ac6433f84..e11ea9a59f 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -731,7 +731,9 @@ void *vo_cocoa_cgl_pixel_format(struct vo *vo) @synthesize vout = _video_output; - (void)performAsyncResize:(NSSize)size { - vo_cocoa_resize_redraw(self.vout, size.width, size.height); + struct vo_cocoa_state *s = self.vout->cocoa; + if (!s->waiting_frame) + vo_cocoa_resize_redraw(self.vout, size.width, size.height); } - (BOOL)keyboardEnabled { |