summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-22 09:20:09 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-22 09:20:09 +0000
commit3a9a9e827cfb0cbb11cd1524e999be29f57b5d86 (patch)
tree9aefc15e9be8d5c10a450f70f56af88edcb14214 /libvo
parent3e6ce4f6467a25df5cdf206dbebdd1e3afe9844e (diff)
downloadmpv-3a9a9e827cfb0cbb11cd1524e999be29f57b5d86.tar.bz2
mpv-3a9a9e827cfb0cbb11cd1524e999be29f57b5d86.tar.xz
Plugger patch by Sam Lin
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3656 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_x11.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index dfbc942a2c..6106c7a469 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -71,6 +71,9 @@ static XImage *myximage;
static int depth,bpp,mode;
static XWindowAttributes attribs;
+/* output window id */
+int WinID=0;
+
//static int vo_dwidth,vo_dheight;
static int Flip_Flag;
@@ -281,7 +284,13 @@ static uint32_t init( uint32_t width,uint32_t height,uint32_t d_width,uint32_t d
}
#endif
- mywindow=XCreateWindow( mDisplay,RootWindow( mDisplay,mScreen ),
+ if ( WinID ){
+ mywindow = (Window)WinID;
+ XUnmapWindow( mDisplay,mywindow );
+ XChangeWindowAttributes( mDisplay,mywindow,xswamask,&xswa );
+ }
+ else
+ mywindow=XCreateWindow( mDisplay,RootWindow( mDisplay,mScreen ),
hint.x,hint.y,
hint.width,hint.height,
xswa.border_pixel,depth,CopyFromParent,vinfo.visual,xswamask,&xswa );