Commit 07aa16f5 authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Jean-Baptiste Kempf

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

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