diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-28 13:24:27 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-28 13:24:27 +0000 |
commit | 68f8e34bfadf65eaf31c00ba562c614dd127e05a (patch) | |
tree | 74d0fbef0a3da1e1701954b9d7039c4e1154e835 /libvo/vo_xv.c | |
parent | a1ec9d78946cd8a26b0ef54b66d773c1328b6efb (diff) |
WinID cleanup, support for Xv
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3831 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r-- | libvo/vo_xv.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 14db960f8a..bd89773236 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -188,9 +188,16 @@ static uint32_t init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t xswa.border_pixel = 0; xswamask = CWBackPixel | CWBorderPixel; + if ( WinID>=0 ){ + mywindow = WinID ? ((Window)WinID) : RootWindow(mDisplay,mScreen); + XUnmapWindow( mDisplay,mywindow ); + XChangeWindowAttributes( mDisplay,mywindow,xswamask,&xswa ); + } else + mywindow = XCreateWindow(mDisplay, RootWindow(mDisplay,mScreen), - hint.x, hint.y, hint.width, hint.height, - 0, depth,CopyFromParent,vinfo.visual,xswamask,&xswa); + hint.x, hint.y, hint.width, hint.height, + 0, depth,CopyFromParent,vinfo.visual,xswamask,&xswa); + vo_x11_classhint( mDisplay,mywindow,"xv" ); vo_hidecursor(mDisplay,mywindow); |