summaryrefslogtreecommitdiffstats
path: root/libvo/vo_quartz.c
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-07-23 13:02:40 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-07-23 13:02:40 +0000
commit97c109258a0a2c7f74a725d50e74d3ea5d333459 (patch)
treeea1c7267363485199d8091216c541c46cc139795 /libvo/vo_quartz.c
parentd92b4225e13c52b4337c21de9867a3d5ab41ab8a (diff)
downloadmpv-97c109258a0a2c7f74a725d50e74d3ea5d333459.tar.bz2
mpv-97c109258a0a2c7f74a725d50e74d3ea5d333459.tar.xz
add support for -rootwin command
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12889 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_quartz.c')
-rw-r--r--libvo/vo_quartz.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c
index 95f57ac6ba..2643f6bee5 100644
--- a/libvo/vo_quartz.c
+++ b/libvo/vo_quartz.c
@@ -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;
}