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:
parent
d06ef6e4ec
commit
54610a5997
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user