[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.150,1.151

Alex Beregszaszi alex at mplayerhq.hu
Mon Sep 1 00:02:29 CEST 2003


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

Modified Files:
	x11_common.c 
Log Message:
Recieving of mouse events can be switched off. Patch by Markus Rechberger <mrechberger at web.de>

Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -r1.150 -r1.151
--- x11_common.c	25 Aug 2003 18:13:51 -0000	1.150
+++ x11_common.c	31 Aug 2003 22:02:25 -0000	1.151
@@ -71,6 +71,7 @@
 
 /* output window id */
 int WinID=-1;
+int vo_nomouse_input = 0;
 int vo_mouse_autohide = 0;
 int vo_wm_type = 0;
 static int vo_fs_type = 0;
@@ -1184,7 +1185,11 @@
 	XSync(display, False);
 	old_handler = XSetErrorHandler(x11_selectinput_errorhandler);
 	selectinput_err = 0;
-	XSelectInput(display, w, event_mask);
+	if(vo_nomouse_input){
+		XSelectInput(display,w,event_mask & (~(ButtonPressMask | ButtonReleaseMask)));
+	} else {
+		XSelectInput(display, w, event_mask);
+	}
 	XSync(display, False);
 	XSetErrorHandler(old_handler);
 	if (selectinput_err) {



More information about the MPlayer-cvslog mailing list