mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 02:41:13 +00:00
-rootwin fix...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5824 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e08139aeba
commit
aa06c562ff
libvo
@ -278,7 +278,8 @@ static uint32_t config( uint32_t width, uint32_t height, uint32_t d_width, uint3
|
||||
xWAttribs.colormap=XCreateColormap( mDisplay,RootWindow( mDisplay,mScreen ),vinfo.visual,AllocNone );
|
||||
xWAttribs.background_pixel=0;
|
||||
xWAttribs.border_pixel=0;
|
||||
xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask;
|
||||
xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask |
|
||||
((WinID==0)?0:(ButtonPressMask | ButtonReleaseMask | PointerMotionMask));
|
||||
xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
|
||||
|
||||
if ( WinID>=0 ){
|
||||
|
@ -292,7 +292,8 @@ if (vo_window == None)
|
||||
xswa.border_pixel = 0;
|
||||
xswa.colormap = XCreateColormap(mDisplay, RootWindow(mDisplay, mScreen),
|
||||
vinfo.visual, AllocNone);
|
||||
xswa.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask;
|
||||
xswa.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask |
|
||||
((WinID==0)?0:(ButtonPressMask | ButtonReleaseMask | PointerMotionMask));
|
||||
xswamask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
|
||||
|
||||
if (WinID >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user