aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-11-12 10:04:25 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-11-12 10:04:25 +0000
commitfc9625678fc7e295e7a7e03a5d47db21d4be3010 (patch)
treeb6a754c44e9dc37822e0d3fdcfa98f4c929b401e /wayland.h
parentchangelog: triple-click when there's a quote in the last column (diff)
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
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index eb1c35a3..140c2058 100644
--- a/wayland.h
+++ b/wayland.h
@@ -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