Commit 080a5c3d authored by David Fuhrmann's avatar David Fuhrmann

macosx: select right screen when fullscreen on startup is enabled

close #7051
(cherry picked from commit b71b4312976d6ee7b067c8dbfeb59dab83da5505)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent c804a4c1
...@@ -1741,13 +1741,10 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1741,13 +1741,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
NSScreen *screen; NSScreen *screen;
NSRect screen_rect; NSRect screen_rect;
NSRect rect; NSRect rect;
vout_thread_t *p_vout = getVout();
BOOL blackout_other_displays = config_GetInt( VLCIntf, "macosx-black" ); BOOL blackout_other_displays = config_GetInt( VLCIntf, "macosx-black" );
id o_videoWindow = b_nonembedded ? o_detached_video_window : self; id o_videoWindow = b_nonembedded ? o_detached_video_window : self;
if( p_vout ) screen = [NSScreen screenWithDisplayID:(CGDirectDisplayID)config_GetInt( VLCIntf, "macosx-vdev" )];
screen = [NSScreen screenWithDisplayID:(CGDirectDisplayID)config_GetInt( VLCIntf, "macosx-vdev" )];
[self lockFullscreenAnimation]; [self lockFullscreenAnimation];
if (!screen) if (!screen)
...@@ -1761,9 +1758,6 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1761,9 +1758,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
screen = [NSScreen deepestScreen]; screen = [NSScreen deepestScreen];
} }
if( p_vout )
vlc_object_release( p_vout );
screen_rect = [screen frame]; screen_rect = [screen frame];
[o_fullscreen_btn setState: YES]; [o_fullscreen_btn setState: YES];
......
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