diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-28 15:55:58 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-28 15:55:58 +0000 |
commit | 0b03ca9d27df2576fc2026389d3d60abacd3808f (patch) | |
tree | 5838eb2e4bb773832baf6f830199b51e013b847c /libvo/x11_common.c | |
parent | 0f45d2efeb3ae8b7fd015ec4bb178d061f6b4880 (diff) | |
download | mpv-0b03ca9d27df2576fc2026389d3d60abacd3808f.tar.bz2 mpv-0b03ca9d27df2576fc2026389d3d60abacd3808f.tar.xz |
removed old input code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7112 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 2d9e5438d1..d352974be2 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -32,10 +32,8 @@ #include <X11/extensions/xf86vmode.h> #endif -#ifdef HAVE_NEW_INPUT #include "../input/input.h" #include "../input/mouse.h" -#endif #ifdef HAVE_NEW_GUI #include "../Gui/interface.h" @@ -366,6 +364,7 @@ int vo_init( void ) vo_wm_type=vo_wm_detect(); + saver_off(mDisplay); return 1; } @@ -532,6 +531,7 @@ XSizeHints vo_hint; void vo_x11_uninit() { + saver_on(mDisplay); if(vo_window!=None) vo_showcursor( mDisplay,vo_window ); #ifdef HAVE_NEW_GUI @@ -624,7 +624,6 @@ int vo_x11_check_events(Display *mydisplay){ case MotionNotify: if ( vo_mouse_autohide ) { vo_showcursor( mydisplay,vo_window ); vo_mouse_counter=vo_mouse_timer_const; } break; -#ifdef HAVE_NEW_INPUT case ButtonPress: if ( vo_mouse_autohide ) { vo_showcursor( mydisplay,vo_window ); vo_mouse_counter=vo_mouse_timer_const; } // Ignore mouse whell press event @@ -646,7 +645,6 @@ int vo_x11_check_events(Display *mydisplay){ #endif mplayer_put_key(MOUSE_BTN0+Event.xbutton.button-1); break; -#endif case PropertyNotify: { char * name = XGetAtomName( mydisplay,Event.xproperty.atom ); |