mirror of
https://github.com/mpv-player/mpv
synced 2024-08-04 14:59:58 +02:00
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
This commit is contained in:
parent
0722563d50
commit
6483811e49
@ -193,6 +193,9 @@ gleichen Verzeichnis wie 'movie.avi'.
|
||||
.B \-, \-use-stdin
|
||||
Liest Daten von stdin. \-idx funktioniert hiermit nicht.
|
||||
.TP
|
||||
.B \-nomouseinput
|
||||
Sperrt die Eingabe mittels Mausbuttons (Buttonpress/release), diese Option wird unter anderem von mozplayerxp verwendet um ein eigenes Kontextmenü anzuzeigen.
|
||||
.TP
|
||||
.B \-autoq <Qualität> (zusammen mit \-vf pp)
|
||||
Ändert dynamisch das Qualitätslevel der Nachbearbeitung, je nachdem, wieviel
|
||||
CPU-Zeit gerade frei ist.
|
||||
|
@ -542,7 +542,9 @@ in a playlist or intend to read from stdin later on via the openfile or
|
||||
openlist commands you
|
||||
.B need
|
||||
this option.
|
||||
|
||||
.TP
|
||||
.B \-nomouseinput
|
||||
Disable any mousebutton press/release input (mozplayerxp's context menu relies on this option)
|
||||
|
||||
.SH "DEMUXER/STREAM OPTIONS"
|
||||
.TP
|
||||
|
@ -83,6 +83,7 @@ extern int fs_layer;
|
||||
extern int stop_xscreensaver;
|
||||
extern int vo_x11_keepaspect;
|
||||
extern char **vo_fstype_list;
|
||||
extern int vo_nomouse_input;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_AA
|
||||
@ -291,6 +292,7 @@ m_option_t mplayer_opts[]={
|
||||
{"keepaspect", &vo_x11_keepaspect, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
||||
{"nokeepaspect", &vo_x11_keepaspect, CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
||||
{"fstype", &vo_fstype_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
|
||||
{"nomouseinput", &vo_nomouse_input, CONF_TYPE_FLAG,0,0,-1,NULL},
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_XINERAMA
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user