diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-28 20:15:43 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-28 20:15:43 +0000 |
commit | bb28366b65372b85db088c31a947316539630260 (patch) | |
tree | fef16e9a29f758ea7d580f63bd9b2f2de72c494a | |
parent | 2fe7acd9a47f5491ab1b7cf5f08b52fb8f00efcb (diff) |
-wid/-rootwin support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3848 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_xmga.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, |