mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
-wid/-rootwin support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3848 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2fe7acd9a4
commit
bb28366b65
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user