changeset 3847:c8c7ba08ef44

-wid/-rootwin support
author arpi
date Fri, 28 Dec 2001 20:15:43 +0000
parents a8f45104d277
children f99944f9f427
files libvo/vo_xmga.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xmga.c	Fri Dec 28 20:15:29 2001 +0000
+++ b/libvo/vo_xmga.c	Fri Dec 28 20:15:43 2001 +0000
@@ -280,6 +280,11 @@
    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,