summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-08 23:22:29 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-08 23:22:29 +0000
commit0b7de297e412ad272689b851c613f9c8f5c8e6b1 (patch)
tree76746501126f474d2d5f8ecec91c0194d839c068 /libvo
parentde1af27fdb2ca84381cade1338dcc7ac47146398 (diff)
downloadmpv-0b7de297e412ad272689b851c613f9c8f5c8e6b1.tar.bz2
mpv-0b7de297e412ad272689b851c613f9c8f5c8e6b1.tar.xz
now use vo_rootwin var to check for -rootwin switch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12973 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c3
-rw-r--r--libvo/x11_common.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 94573525b1..0cf9c166c0 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -366,6 +366,9 @@ int vo_init(void)
// Window mRootWin;
XWindowAttributes attribs;
char *dispName;
+
+ if (vo_rootwin)
+ WinID = 0; // use root win
if (vo_depthonscreen)
return 1; // already called
diff --git a/libvo/x11_common.h b/libvo/x11_common.h
index 9e8c74a4c9..dd6265bb75 100644
--- a/libvo/x11_common.h
+++ b/libvo/x11_common.h
@@ -34,6 +34,7 @@ extern int vo_wm_type;
extern int vo_fs_type;
extern char** vo_fstype_list;
extern int vo_ontop;
+extern int vo_rootwin;
extern char *mDisplayName;
extern Display *mDisplay;