Commit 3ab77917 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed unresponsive playlist correlated to video playback (fixes #5871)

parent 75beeaed
......@@ -559,11 +559,13 @@ static VLCMainWindow *_o_sharedInstance = nil;
if ([o_video_view isHidden] && [o_playlist_btn isEnabled]) {
[o_split_view setHidden: YES];
[o_video_view setHidden: NO];
[self makeFirstResponder: o_video_view];
}
else
{
[o_video_view setHidden: YES];
[o_split_view setHidden: NO];
[self makeFirstResponder: nil];
}
}
else
......@@ -1193,6 +1195,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
}
if (b_videoPlayback)
[self makeFirstResponder: o_video_view];
else
[self makeFirstResponder: nil];
}
- (void)resizeWindow
......
......@@ -304,8 +304,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
- (BOOL)resignFirstResponder
{
/* We need to stay the first responder or we'll miss some
events */
return NO;
/* while we need to be the first responder most of the time, we need to give up that status when toggling the playlist */
return YES;
}
@end
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