config: add toplevel-tag=TAG

Add support for the new xdg-toplevel-tag-v1 Wayland protocol, by
exposing a new config option, `toplevel-tag`, and a corresponding
command option, `--toplevel-tag` (in both `foot` and `footclient`).

This can help the compositor with session management, or custom window
rules.

Closes #2212
This commit is contained in:
Daniel Eklöf 2025-11-12 11:04:25 +01:00
parent c9abab0807
commit fc9625678f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
19 changed files with 113 additions and 6 deletions

View file

@ -23,6 +23,10 @@
#include <xdg-system-bell-v1.h>
#include <xdg-toplevel-icon-v1.h>
#if defined(HAVE_XDG_TOPLEVEL_TAG)
#include <xdg-toplevel-tag-v1.h>
#endif
#include <fcft/fcft.h>
#include <tllist.h>
@ -481,6 +485,10 @@ struct wayland {
struct wp_presentation *presentation;
uint32_t presentation_clock_id;
#if defined(HAVE_XDG_TOPLEVEL_TAG)
struct xdg_toplevel_tag_manager_v1 *toplevel_tag_manager;
#endif
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
struct zwp_text_input_manager_v3 *text_input_manager;
#endif