From 0b7de297e412ad272689b851c613f9c8f5c8e6b1 Mon Sep 17 00:00:00 2001 From: nplourde Date: Sun, 8 Aug 2004 23:22:29 +0000 Subject: 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 --- libvo/x11_common.c | 3 +++ libvo/x11_common.h | 1 + 2 files changed, 4 insertions(+) (limited to 'libvo') 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; -- cgit v1.2.3