swayfx/sway
Michael Weiser 0f11aa037a commands: Add per-view shortcuts_inhibitor command
Add a separate per-view shortcuts_inhibitor command that can be used
with criteria to override the per-seat defaults. This allows to e.g.
disable shortcuts inhibiting globally but enable it for specific,
known-good virtualization and remote desktop software or, alternatively,
to blacklist that one slightly broken piece of software that just
doesn't seem to get it right but insists on trying.

Add a flag to sway_view and handling logic in the input manager that
respects that flag if configured but falls back to per-seat config
otherwise. Add the actual command but with just enable and disable
subcommands since there's no value in duplicating the per-seat
activate/deactivate/toggle logic here. Split the inhibitor retrieval
helper in two so we can use the backend half in the command to retrieve
inhibitors for a specific surface and not just the currently focused
one. Extend the manual page with documentation of the command and
references to its per-seat sibling and usefulness with criteria.

Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
2020-05-13 21:22:16 -04:00
..
commands commands: Add per-view shortcuts_inhibitor command 2020-05-13 21:22:16 -04:00
config config/output: reconfigure input devices after full output init 2020-04-26 09:13:39 +02:00
desktop Render layer shell popups over the top layer 2020-04-10 10:45:47 +02:00
input commands: Add per-view shortcuts_inhibitor command 2020-05-13 21:22:16 -04:00
tree commands: Add per-view shortcuts_inhibitor command 2020-05-13 21:22:16 -04:00
commands.c commands: Add per-view shortcuts_inhibitor command 2020-05-13 21:22:16 -04:00
config.c config: fix unfocused text color 2020-04-04 23:25:04 +02:00
criteria.c Introduce pid criteria token 2020-02-27 14:03:22 +01:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c Add each view's shell to JSON description 2020-04-27 20:37:57 -04:00
ipc-server.c ipc-server: improve error message 2020-02-29 19:59:42 +01:00
main.c config: fix validation exit code and log level 2020-02-11 16:02:11 +01:00
meson.build commands: Add per-view shortcuts_inhibitor command 2020-05-13 21:22:16 -04:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Add a secondary headless backend 2020-05-01 17:00:14 +02:00
sway-bar.5.scd swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
sway-input.5.scd fix typos in sway-input.5.scd 2020-04-29 12:43:34 +02:00
sway-ipc.7.scd Add each view's shell to JSON description 2020-04-27 20:37:57 -04:00
sway-output.5.scd Simplify repaint scheduling documentation 2020-05-11 10:36:33 +02:00
sway.1.scd add dots to man 2020-04-14 10:10:35 +02:00
sway.5.scd commands: Add per-view shortcuts_inhibitor command 2020-05-13 21:22:16 -04:00
swaynag.c Rename symbol set_cloexec to sway_set_cloexec, remove duplicates. 2019-11-01 12:41:08 -04:00
xdg_decoration.c Fix xdg-decoration unconfigured if set before first commit 2019-05-03 15:37:32 -06:00