Mercurial > mplayer.hg
changeset 5656:70031f0cc4d2
Bug fix in mouse button handling for 2бы scroller (I hope it work
as I can't test it)
author | albeu |
---|---|
date | Wed, 17 Apr 2002 12:26:05 +0000 |
parents | 117f34bb7097 |
children | ee2efbf3dc9d |
files | libvo/x11_common.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;