diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-13 12:11:21 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-13 12:11:21 +0000 |
commit | 54610a5997817c34b51c5c25342b502438b4fa7f (patch) | |
tree | 271cab69da164ae27c9a8aee3b15dc1c139b4123 /libvo/x11_common.c | |
parent | d06ef6e4ec5393995afb7e26e4e89e007792f2c3 (diff) | |
download | mpv-54610a5997817c34b51c5c25342b502438b4fa7f.tar.bz2 mpv-54610a5997817c34b51c5c25342b502438b4fa7f.tar.xz |
upsz ... 10l :)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5063 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 92da47d716..77206bb4d6 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -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 |