From bb28366b65372b85db088c31a947316539630260 Mon Sep 17 00:00:00 2001 From: arpi Date: Fri, 28 Dec 2001 20:15:43 +0000 Subject: [PATCH] -wid/-rootwin support git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3848 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xmga.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c index 2cd90d4185..459f1c4d30 100644 --- a/libvo/vo_xmga.c +++ b/libvo/vo_xmga.c @@ -280,6 +280,11 @@ static uint32_t init( uint32_t width, uint32_t height, uint32_t d_width, uint32_ xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask; xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; + if ( WinID>=0 ){ + mWindow = WinID ? ((Window)WinID) : RootWindow(mDisplay,mScreen); + XUnmapWindow( mDisplay,mWindow ); + XChangeWindowAttributes( mDisplay,mWindow,xswamask,&xWAttribs); + } else mWindow=XCreateWindow( mDisplay,RootWindow( mDisplay,mScreen ), wndX,wndY, wndWidth,wndHeight,