Mercurial > mplayer.hg
diff libvo/vo_xmga.c @ 5823:daa705aff4f3
-rootwin fix...
author | arpi |
---|---|
date | Wed, 24 Apr 2002 23:15:17 +0000 |
parents | b8d8d72776f2 |
children | 104fce2b92b6 |
line wrap: on
line diff
--- a/libvo/vo_xmga.c Wed Apr 24 23:10:41 2002 +0000 +++ b/libvo/vo_xmga.c Wed Apr 24 23:15:17 2002 +0000 @@ -278,7 +278,8 @@ 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 ){