summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-08-31 22:02:25 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-08-31 22:02:25 +0000
commit6483811e490f6fe2aec1254f47942e8f9ba509ea (patch)
tree3db0c22c7d6841ad3c77e0d231b5c77c88b90475 /libvo/x11_common.c
parent0722563d50942247792f513440c869c1d5ed5334 (diff)
downloadmpv-6483811e490f6fe2aec1254f47942e8f9ba509ea.tar.bz2
mpv-6483811e490f6fe2aec1254f47942e8f9ba509ea.tar.xz
Recieving of mouse events can be switched off. Patch by Markus Rechberger <mrechberger@web.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10755 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r--libvo/x11_common.c7
1 files changed, 6 insertions, 1 deletions
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) {