summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;