features: add +/-system-bell to version output

This commit is contained in:
Daniel Eklöf 2025-01-17 11:22:23 +01:00
parent 2a07a2e6b9
commit aeb28e33fa
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 15 additions and 3 deletions

View file

@ -67,12 +67,14 @@ version_and_features(void)
{
static char buf[256];
snprintf(buf, sizeof(buf),
"version: %s %cpgo %cime %cgraphemes %cassertions",
"version: %s %cpgo %cime %cgraphemes %ctoplevel-icon %csystem-bell %cassertions",
FOOT_VERSION,
feature_pgo() ? '+' : '-',
feature_ime() ? '+' : '-',
feature_graphemes() ? '+' : '-',
feature_assertions() ? '+' : '-');
feature_xdg_toplevel_icon() ? '+' : '-',
feature_xdg_system_bell() ? '+' : '-',
feature_assertions() ? '+' : '-');
return buf;
}