diff --git a/libvo/video_out.c b/libvo/video_out.c index 94c41f4b58..e22c3e482a 100644 --- a/libvo/video_out.c +++ b/libvo/video_out.c @@ -33,6 +33,7 @@ int vo_dwidth=0; int vo_dheight=0; int vo_dbpp=0; +int vo_nomouse_input = 0; int vo_grabpointer = 1; int vo_doublebuffering = 0; int vo_vsync = 0; diff --git a/libvo/video_out.h b/libvo/video_out.h index 2d75067818..c4558c0845 100644 --- a/libvo/video_out.h +++ b/libvo/video_out.h @@ -204,6 +204,7 @@ extern int vo_gamma_green_intensity; extern int vo_gamma_blue_intensity; extern int vo_mouse_timer_const; +extern int vo_nomouse_input; extern int vo_pts; extern float vo_fps; diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index e36e2a8352..f65087bafa 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -1191,6 +1191,8 @@ static void check_events (void) break; case SDL_MOUSEBUTTONDOWN: + if(vo_nomouse_input) + break; if(event.button.button == 4 || event.button.button == 5) mplayer_put_key(MOUSE_BASE+event.button.button-1); else @@ -1198,6 +1200,8 @@ static void check_events (void) break; case SDL_MOUSEBUTTONUP: + if(vo_nomouse_input) + break; mplayer_put_key(MOUSE_BASE+event.button.button-1); break; diff --git a/libvo/x11_common.c b/libvo/x11_common.c index a7194b617b..f3b8edaf89 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -71,7 +71,6 @@ int mLocalDisplay; /* output window id */ int WinID=-1; -int vo_nomouse_input = 0; int vo_mouse_autohide = 0; int vo_wm_type = 0; static int vo_fs_type = 0;