summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-29 19:06:13 +0200
committerwm4 <wm4@nowhere>2013-08-29 19:07:20 +0200
commitc89b162462d37b06d1d2f78379c8d4fc9bf57c81 (patch)
treeddcc51fe0a7265924df89f28d0f0de4f31c4e233
parentfd2ead50808d81e488f322f90305e2bbb175e84b (diff)
downloadmpv-c89b162462d37b06d1d2f78379c8d4fc9bf57c81.tar.bz2
mpv-c89b162462d37b06d1d2f78379c8d4fc9bf57c81.tar.xz
input: fix --no-input-default-bindings
The option did nothing. This was probably broken with 5b38a52.
-rw-r--r--mpvcore/input/input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mpvcore/input/input.c b/mpvcore/input/input.c
index 504eb66c6e..cfeb27975e 100644
--- a/mpvcore/input/input.c
+++ b/mpvcore/input/input.c
@@ -1298,6 +1298,8 @@ static struct cmd_bind *find_any_bind_for_key(struct input_ctx *ictx,
struct active_section *s = &ictx->active_sections[i];
struct cmd_bind *bind = find_bind_for_key_section(ictx, s->name, n, keys);
if (bind) {
+ if (bind->is_builtin && !ictx->default_bindings)
+ goto skip;
struct cmd_bind_section *bs = bind->owner;
for (int x = 0; x < n; x++) {
if (MP_KEY_DEPENDS_ON_MOUSE_POS(keys[x]) && bs->mouse_area_set &&