Commit 167690dd authored by David Fuhrmann's avatar David Fuhrmann

fix bug where window resizes to full screen size when using native fullscreen mode

parent dd86d6d4
...@@ -811,9 +811,10 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -811,9 +811,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
BOOL b_videoPlayback = [[VLCMain sharedInstance] activeVideoPlayback]; BOOL b_videoPlayback = [[VLCMain sharedInstance] activeVideoPlayback];
if (b_videoPlayback) { if (b_videoPlayback) {
frameBeforePlayback = [self frame]; if (!b_fullscreen)
frameBeforePlayback = [self frame];
} else { } else {
if (!b_nonembedded && !b_fullscreen) if (!b_nonembedded && !b_fullscreen && frameBeforePlayback.size.width > 0 && frameBeforePlayback.size.height > 0)
[[self animator] setFrame:frameBeforePlayback display:YES]; [[self animator] setFrame:frameBeforePlayback display:YES];
[self makeFirstResponder: nil]; [self makeFirstResponder: nil];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment