1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-19 22:01:10 +00:00

add support for -rootwin command

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12889 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nplourde 2004-07-23 13:02:40 +00:00
parent d92b4225e1
commit 97c109258a

View File

@ -70,10 +70,13 @@ static MatrixRecord matrix;
static int EnterMoviesDone = 0;
static int get_image_done = 0;
extern int WinID;;
extern int vo_ontop;
extern int vo_fs; // user want fullscreen
static int vo_quartz_fs; // we are in fullscreen
int WinID = -1;
static int winLevel = 1;
int levelList[] =
{
@ -569,6 +572,14 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32
if(vo_ontop)
window_ontop();
if(WinID == 0)
{
vo_fs = TRUE;
winLevel = 0;
SetWindowGroupLevel(winGroup, CGWindowLevelForKey(levelList[winLevel]));
window_fullscreen();
}
return 0;
}