[MPlayer-cvslog] CVS: main/libvo vo_gl.c, 1.85, 1.86 vo_gl2.c, 1.72, 1.73

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Aug 17 01:24:55 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv12329/libvo

Modified Files:
	vo_gl.c vo_gl2.c 
Log Message:
Get events from -wid window.


Index: vo_gl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- vo_gl.c	16 Aug 2005 19:07:07 -0000	1.85
+++ vo_gl.c	16 Aug 2005 23:24:52 -0000	1.86
@@ -204,6 +204,9 @@
 #else
   if (WinID >= 0) {
     vo_window = WinID ? (Window)WinID : mRootWin;
+    vo_x11_selectinput_witherr(mDisplay, vo_window,
+             StructureNotifyMask | KeyPressMask | PointerMotionMask |
+             ButtonPressMask | ButtonReleaseMask | ExposureMask);
     goto glconfig;
   }
   if ( vo_window == None ) {

Index: vo_gl2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl2.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- vo_gl2.c	14 Aug 2005 19:40:33 -0000	1.72
+++ vo_gl2.c	16 Aug 2005 23:24:52 -0000	1.73
@@ -622,6 +622,9 @@
 static int config_glx(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) {
   if (WinID >= 0) {
     vo_window = WinID ? (Window)WinID : mRootWin;
+    vo_x11_selectinput_witherr(mDisplay, vo_window,
+             StructureNotifyMask | KeyPressMask | PointerMotionMask |
+             ButtonPressMask | ButtonReleaseMask | ExposureMask);
     return 0;
   }
   if ( vo_window == None ) 




More information about the MPlayer-cvslog mailing list