# HG changeset patch # User albeu # Date 1019046365 0 # Node ID 70031f0cc4d2a24df7d1a465b5888196e4a4a76f # Parent 117f34bb70973b728d20789efe546bcbf171d264 Bug fix in mouse button handling for 2бы scroller (I hope it work as I can't test it) diff -r 117f34bb7097 -r 70031f0cc4d2 libvo/x11_common.c --- a/libvo/x11_common.c Wed Apr 17 12:23:52 2002 +0000 +++ b/libvo/x11_common.c Wed Apr 17 12:26:05 2002 +0000 @@ -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;