1
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:33:46 +01:00

upsz ... 10l :)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5063 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2002-03-13 12:11:21 +00:00
parent d06ef6e4ec
commit 54610a5997

View File

@ -507,13 +507,17 @@ int vo_x11_check_events(Display *mydisplay){
case ButtonPress:
// Ignore mouse whell press event
if(Event.xbutton.button == 4 || Event.xbutton.button == 5) break;
// Ignor mouse button 1 - 3 under gui
if ( use_gui && ( Event.xbutton.button >= 1 )&&( Event.xbutton.button <= 3 ) ) break;
#ifdef HAVE_NEW_GUI
// Ignor mouse button 1 - 3 under gui
if ( use_gui && ( Event.xbutton.button >= 1 )&&( Event.xbutton.button <= 3 ) ) break;
#endif
mplayer_put_key((MOUSE_BTN0+Event.xbutton.button-1)|MP_KEY_DOWN);
break;
case ButtonRelease:
// Ignor mouse button 1 - 3 under gui
if ( use_gui && ( Event.xbutton.button >= 1 )&&( Event.xbutton.button <= 3 ) ) break;
#ifdef HAVE_NEW_GUI
// Ignor mouse button 1 - 3 under gui
if ( use_gui && ( Event.xbutton.button >= 1 )&&( Event.xbutton.button <= 3 ) ) break;
#endif
mplayer_put_key(MOUSE_BTN0+Event.xbutton.button-1);
break;
#endif