mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
main: include toplevel-icon support in --version output
This commit is contained in:
parent
f5caa2d265
commit
c6208a98c8
3 changed files with 24 additions and 8 deletions
|
|
@ -37,3 +37,12 @@ static inline bool feature_graphemes(void)
|
|||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline bool feature_xdg_toplevel_icon(void)
|
||||
{
|
||||
#if defined(HAVE_XDG_TOPLEVEL_ICON)
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
3
main.c
3
main.c
|
|
@ -51,11 +51,12 @@ 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 %cassertions",
|
||||
FOOT_VERSION,
|
||||
feature_pgo() ? '+' : '-',
|
||||
feature_ime() ? '+' : '-',
|
||||
feature_graphemes() ? '+' : '-',
|
||||
feature_xdg_toplevel_icon() ? '+' : '-',
|
||||
feature_assertions() ? '+' : '-');
|
||||
return buf;
|
||||
}
|
||||
|
|
|
|||
20
wayland.c
20
wayland.c
|
|
@ -1592,27 +1592,33 @@ wayl_init(struct fdm *fdm, struct key_binding_manager *key_binding_manager,
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (presentation_timings && wayl->presentation == NULL) {
|
||||
LOG_ERR("compositor does not implement the presentation time interface");
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (wayl->primary_selection_device_manager == NULL)
|
||||
LOG_WARN("no primary selection available");
|
||||
LOG_WARN("compositor does not implement the primary selection interface");
|
||||
|
||||
if (wayl->xdg_activation == NULL) {
|
||||
LOG_WARN(
|
||||
"no XDG activation support; "
|
||||
"compositor does not implement XDG activation, "
|
||||
"bell.urgent will fall back to coloring the window margins red");
|
||||
}
|
||||
|
||||
if (wayl->fractional_scale_manager == NULL || wayl->viewporter == NULL)
|
||||
LOG_WARN("fractional scaling not available");
|
||||
LOG_WARN("compositor does not implement fractional scaling");
|
||||
|
||||
if (wayl->cursor_shape_manager == NULL) {
|
||||
LOG_WARN("no server-side cursors available, "
|
||||
LOG_WARN("compositor does not implement server-side cursors, "
|
||||
"falling back to client-side cursors");
|
||||
}
|
||||
|
||||
if (presentation_timings && wayl->presentation == NULL) {
|
||||
LOG_ERR("presentation time interface not implemented by compositor");
|
||||
goto out;
|
||||
#if defined(HAVE_XDG_TOPLEVEL_ICON)
|
||||
if (wayl->toplevel_icon_manager == NULL) {
|
||||
LOG_WARN("compositor does not implement the XDG toplevel icon protocol");
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
|
||||
if (wayl->text_input_manager == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue