summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xmga.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_xmga.c')
-rw-r--r--libvo/vo_xmga.c5
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,