mpv/input
Avi Halachmi (:avih) 3abb23d70f command: don't hardcode commands list to be repeatable
Previously, a list of commands was always considered repeatable.

This behavior was added at 6710527a (and moved around since then),
in order to fix #807 (impossible to make a repeatable list).

The problem was that a list doesn't have the normal repeatability
flags and so it was never repeatable, so it was hardcoded to be
repeatable instead. Presumably it was deemed good enough.

However, this made it impossible to have a non-repeatable list.

This commit changes the behavior so that a list repeatability is
that of the first command at the list.

This way, any list can be made either repeatable or non-repeatable
using the following idiom (e.g. at input.conf), based on the fact
that the "ignore" command is not repeatable by default:

  x            ignore; cmd1...; cmd2...   # non-repeatable
  y repeatable ignore; cmd1...; cmd2...   # repeatable

Fixes #7841
2021-08-17 22:45:39 +03:00
..
cmd.c command: don't hardcode commands list to be repeatable 2021-08-17 22:45:39 +03:00
cmd.h options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
event.c input: ignore empty lines on drag-drop mime data 2019-09-21 15:39:47 +02:00
event.h input/event.h: add include guard 2016-03-15 22:44:15 +01:00
input.c command: mouse-pos property: add field "hover" 2020-11-16 20:29:58 +02:00
input.h command: mouse-pos property: add field "hover" 2020-11-16 20:29:58 +02:00
ipc-dummy.c scripting: add a way to run sub processes as "scripts" 2020-02-19 22:18:15 +01:00
ipc-unix.c ipc: mark client sockets as CLOEXEC 2020-05-15 16:37:41 +02:00
ipc-win.c scripting: add a way to run sub processes as "scripts" 2020-02-19 22:18:15 +01:00
ipc.c ipc: fix recently added memory leak 2020-03-27 00:07:03 +01:00
keycodes.c command: add input-key-list property 2020-05-14 22:22:33 +02:00
keycodes.h command: add input-key-list property 2020-05-14 22:22:33 +02:00
sdl_gamepad.c sdl: prevent concurrent use of SDL in different threads 2019-10-25 22:17:54 +02:00