diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-17 12:26:05 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-17 12:26:05 +0000 |
commit | 1996e5caae1c46f0b63e9c9e8dc40f86da115741 (patch) | |
tree | f238a2232a09ed0fe21ceea324f312689de80df3 | |
parent | 152a7563a769b5e1adc098f2972c5cfe2765095a (diff) | |
download | mpv-1996e5caae1c46f0b63e9c9e8dc40f86da115741.tar.bz2 mpv-1996e5caae1c46f0b63e9c9e8dc40f86da115741.tar.xz |
Bug fix in mouse button handling for 2° scroller (I hope it work
as I can't test it)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5657 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/x11_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index bd2f2e8705..3cb82b3475 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -519,7 +519,10 @@ int vo_x11_check_events(Display *mydisplay){ 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; |