[Mplayer-cvslog] CVS: main/libvo vo_xvidix.c,1.30,1.31 vo_xmga.c,1.57,1.58

Arpi of Ize arpi at mplayerhq.hu
Thu Apr 25 01:15:20 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv31253

Modified Files:
	vo_xvidix.c vo_xmga.c 
Log Message:
-rootwin fix...

Index: vo_xvidix.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xvidix.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- vo_xvidix.c	20 Apr 2002 22:58:15 -0000	1.30
+++ vo_xvidix.c	24 Apr 2002 23:15:17 -0000	1.31
@@ -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)

Index: vo_xmga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xmga.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- vo_xmga.c	16 Apr 2002 17:41:29 -0000	1.57
+++ vo_xmga.c	24 Apr 2002 23:15:17 -0000	1.58
@@ -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 ){




More information about the MPlayer-cvslog mailing list