mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
Add support for the new Wayland protocol xdg-system-bell
From the release notes:
system bell - allowing e.g. terminal emulators to hand off system
bell alerts to the compositor for among other things accessibility
purposes
The new protocol is used when the new config option
bell.system=yes (and the compositor implements the protocol,
obviously).
The system bell is rung independent of whether the foot window has
keyboard focus or not (thus relying on compositor configuration to
determine whether anything should be done or not in response to the
bell).
The new option is enabled by default.
This commit is contained in:
parent
7e7fd0468d
commit
2a07a2e6b9
11 changed files with 91 additions and 11 deletions
3
config.c
3
config.c
|
|
@ -1139,6 +1139,8 @@ parse_section_bell(struct context *ctx)
|
|||
return value_to_bool(ctx, &conf->bell.urgent);
|
||||
else if (streq(key, "notify"))
|
||||
return value_to_bool(ctx, &conf->bell.notify);
|
||||
else if (streq(key, "system"))
|
||||
return value_to_bool(ctx, &conf->bell.system_bell);
|
||||
else if (streq(key, "visual"))
|
||||
return value_to_bool(ctx, &conf->bell.flash);
|
||||
else if (streq(key, "command"))
|
||||
|
|
@ -3182,6 +3184,7 @@ config_load(struct config *conf, const char *conf_path,
|
|||
.urgent = false,
|
||||
.notify = false,
|
||||
.flash = false,
|
||||
.system_bell = true,
|
||||
.command = {
|
||||
.argv = {.args = NULL},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue