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 b71b4312)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent c804a4c1
......@@ -1741,13 +1741,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
NSScreen *screen;
NSRect screen_rect;
NSRect rect;
vout_thread_t *p_vout = getVout();
BOOL blackout_other_displays = config_GetInt( VLCIntf, "macosx-black" );
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];
if (!screen)
......@@ -1761,9 +1758,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
screen = [NSScreen deepestScreen];
}
if( p_vout )
vlc_object_release( p_vout );
screen_rect = [screen frame];
[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