mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 17:39:38 +00: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:
|
case ButtonPress:
|
||||||
// Ignore mouse whell press event
|
// Ignore mouse whell press event
|
||||||
if(Event.xbutton.button == 4 || Event.xbutton.button == 5) break;
|
if(Event.xbutton.button == 4 || Event.xbutton.button == 5) break;
|
||||||
// Ignor mouse button 1 - 3 under gui
|
#ifdef HAVE_NEW_GUI
|
||||||
if ( use_gui && ( Event.xbutton.button >= 1 )&&( Event.xbutton.button <= 3 ) ) break;
|
// 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);
|
mplayer_put_key((MOUSE_BTN0+Event.xbutton.button-1)|MP_KEY_DOWN);
|
||||||
break;
|
break;
|
||||||
case ButtonRelease:
|
case ButtonRelease:
|
||||||
// Ignor mouse button 1 - 3 under gui
|
#ifdef HAVE_NEW_GUI
|
||||||
if ( use_gui && ( Event.xbutton.button >= 1 )&&( Event.xbutton.button <= 3 ) ) break;
|
// 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);
|
mplayer_put_key(MOUSE_BTN0+Event.xbutton.button-1);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user