From 6483811e490f6fe2aec1254f47942e8f9ba509ea Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 31 Aug 2003 22:02:25 +0000 Subject: Recieving of mouse events can be switched off. Patch by Markus Rechberger git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10755 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libvo') diff --git a/libvo/x11_common.c b/libvo/x11_common.c index c4620c84bf..ce5005fc91 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -71,6 +71,7 @@ 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; @@ -1184,7 +1185,11 @@ void vo_x11_selectinput_witherr(Display *display, Window w, long event_mask) XSync(display, False); old_handler = XSetErrorHandler(x11_selectinput_errorhandler); selectinput_err = 0; - XSelectInput(display, w, event_mask); + if(vo_nomouse_input){ + XSelectInput(display,w,event_mask & (~(ButtonPressMask | ButtonReleaseMask))); + } else { + XSelectInput(display, w, event_mask); + } XSync(display, False); XSetErrorHandler(old_handler); if (selectinput_err) { -- cgit v1.2.3