[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.64,1.65
Alban Bedel CVS
albeu at mplayerhq.hu
Wed Apr 17 14:26:07 CEST 2002
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv19628/libvo
Modified Files:
x11_common.c
Log Message:
Bug fix in mouse button handling for 2° scroller (I hope it work
as I can't test it)
Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- x11_common.c 16 Apr 2002 17:41:29 -0000 1.64
+++ x11_common.c 17 Apr 2002 12:26:05 -0000 1.65
@@ -519,7 +519,10 @@
case ButtonPress:
vo_showcursor( mydisplay,vo_window ); vo_mouse_counter=vo_mouse_timer_const;
// Ignore mouse whell press event
- if(Event.xbutton.button == 4 || Event.xbutton.button == 5) break;
+ if(Event.xbutton.button > 3) {
+ mplayer_put_key(MOUSE_BTN0+Event.xbutton.button-1);
+ break;
+ }
#ifdef HAVE_NEW_GUI
// Ignor mouse button 1 - 3 under gui
if ( use_gui && ( Event.xbutton.button >= 1 )&&( Event.xbutton.button <= 3 ) ) break;
More information about the MPlayer-cvslog
mailing list