aboutsummaryrefslogtreecommitdiff
path: root/meson.build
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 /meson.build
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 'meson.build')
-rw-r--r--meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index a1d0104d..aa8342ab 100644
--- a/meson.build
+++ b/meson.build
@@ -182,7 +182,12 @@ wl_proto_xml = [
wayland_protocols_datadir / 'staging/xdg-toplevel-icon/xdg-toplevel-icon-v1.xml',
wayland_protocols_datadir / 'staging/xdg-system-bell/xdg-system-bell-v1.xml',
wayland_protocols_datadir / 'staging/color-management/color-management-v1.xml',
- ]
+]
+
+if (wayland_protocols.version().version_compare('>=1.43'))
+ wl_proto_xml += [wayland_protocols_datadir / 'staging/xdg-toplevel-tag/xdg-toplevel-tag-v1.xml']
+ add_project_arguments('-DHAVE_XDG_TOPLEVEL_TAG=1', language: 'c')
+endif
foreach prot : wl_proto_xml
wl_proto_headers += custom_target(