[Mplayer-cvslog] CVS: main/libvo vo_xmga.c,1.46,1.47 vo_xvidix.c,1.21,1.22

Zoltan Ponekker pontscho at mplayer.dev.hu
Thu Feb 21 14:28:42 CET 2002


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

Modified Files:
	vo_xmga.c vo_xvidix.c 
Log Message:
ExposureMask fixed.

Index: vo_xmga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xmga.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- vo_xmga.c	20 Feb 2002 10:02:29 -0000	1.46
+++ vo_xmga.c	21 Feb 2002 13:28:39 -0000	1.47
@@ -302,7 +302,7 @@
    xWAttribs.colormap=XCreateColormap( mDisplay,RootWindow( mDisplay,mScreen ),vinfo.visual,AllocNone );
    xWAttribs.background_pixel=0;
    xWAttribs.border_pixel=0;
-   xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask;
+   xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask;
    xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
 
     if ( WinID>=0 ){
@@ -330,12 +330,6 @@
    XSetNormalHints( mDisplay,mWindow,&hint );
    XStoreName( mDisplay,mWindow,mTitle );
    XMapWindow( mDisplay,mWindow );
-
-   XSelectInput(mDisplay, mWindow, StructureNotifyMask | KeyPressMask                             
-#ifdef HAVE_NEW_INPUT                                                                              
-           | ButtonPressMask | ButtonReleaseMask                                              
-#endif                                                                                             
-   );
 		   
 #ifdef HAVE_XINERAMA
    vo_x11_xinerama_move(mDisplay,mWindow);

Index: vo_xvidix.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xvidix.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- vo_xvidix.c	20 Feb 2002 10:02:29 -0000	1.21
+++ vo_xvidix.c	21 Feb 2002 13:28:39 -0000	1.22
@@ -305,7 +305,7 @@
     xswa.border_pixel     = 0;
     xswa.colormap         = XCreateColormap(mDisplay, RootWindow(mDisplay, mScreen),
 					    vinfo.visual, AllocNone);
-    xswa.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask;
+    xswa.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask;
     xswamask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
 
     if (WinID >= 0)
@@ -335,12 +335,6 @@
     hint.flags = USPosition | USSize;
     XSetNormalHints(mDisplay, mWindow, &hint);
 
-    XSelectInput(mDisplay, mWindow, StructureNotifyMask | KeyPressMask                             
-#ifdef HAVE_NEW_INPUT                                                                              
-       | ButtonPressMask | ButtonReleaseMask                                              
-#endif                                                                                             
-    );
-		       
     XStoreName(mDisplay, mWindow, title);
     /* Map window. */
 




More information about the MPlayer-cvslog mailing list