aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-27 15:25:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-07-03 12:36:32 +0000
commitc8e13ad3938d68635693d0b0f4bf1054628e8387 (patch)
tree8c898440b07056d9e3f76e77b62f8d89248ae578 /meson.build
parentrefactor: track current xcursor using an enum, instead of a char pointer (diff)
cursor-shape: add support for server side cursor shapes
This implements support for the new cursor-shape-v1 protocol. When available, we use it, instead of client-side cursor surfaces, to select the xcursor shape. Note that we still need to keep client side pointers, for: * backward compatibility * to be able to "hide" the cursor Closes #1379
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 9560504f..ed0bf4a0 100644
--- a/meson.build
+++ b/meson.build
@@ -170,6 +170,12 @@ else
fractional_scale = false
endif
+# TODO: check wayland-protocols version
+wl_proto_xml += [wayland_protocols_datadir + '/unstable/tablet/tablet-unstable-v2.xml', # required by cursor-shape-v1
+ 'cursor-shape-v1.xml', # TODO: use wayland-protocols
+ ]
+add_project_arguments('-DHAVE_CURSOR_SHAPE', language: 'c')
+
foreach prot : wl_proto_xml
wl_proto_headers += custom_target(
prot.underscorify() + '-client-header',