Commit af6ffdaa authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed pl counter and make sure we pause the input on minimaturize (closes #5809)

parent 09ad74bd
......@@ -442,6 +442,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
[o_time_sld_fancygradient_view removeFromSuperviewWithoutNeedingDisplay];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(someWindowWillClose:) name: NSWindowWillCloseNotification object: nil];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(someWindowWillMiniaturize:) name: NSWindowWillMiniaturizeNotification object:nil];
}
#pragma mark -
......@@ -1054,6 +1055,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
else
[self showDropZone];
PL_UNLOCK;
[o_sidebar_view setNeedsDisplay:YES];
}
- (void)setPause
......@@ -1239,6 +1241,12 @@ static VLCMainWindow *_o_sharedInstance = nil;
[[VLCCoreInteraction sharedInstance] stop];
}
- (void)someWindowWillMiniaturize:(NSNotification *)notification
{
if([notification object] == o_nonembedded_window || [notification object] == self)
[[VLCCoreInteraction sharedInstance] pause];
}
#pragma mark -
#pragma mark Fullscreen support
- (void)showFullscreenController
......@@ -1849,7 +1857,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
NSInteger i_playlist_size;
PL_LOCK;
i_playlist_size = playlist_CurrentSize( p_playlist );
i_playlist_size = p_playlist->items.i_size;
PL_UNLOCK;
return i_playlist_size;
......
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