# HG changeset patch # User arpi # Date 1019690117 0 # Node ID daa705aff4f3754c84ae684058a45a1c04281d29 # Parent 8e3251d0d9a6c61fa264d75b0ab86a0512186451 -rootwin fix... diff -r 8e3251d0d9a6 -r daa705aff4f3 libvo/vo_xmga.c --- 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 ){ diff -r 8e3251d0d9a6 -r daa705aff4f3 libvo/vo_xvidix.c --- a/libvo/vo_xvidix.c Wed Apr 24 23:10:41 2002 +0000 +++ b/libvo/vo_xvidix.c Wed Apr 24 23:15:17 2002 +0000 @@ -292,7 +292,8 @@ 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)