Implement wp_cursor_shape_v1

This commit is contained in:
spacepineapple24 2025-03-24 18:28:04 +00:00
parent 43e1944607
commit 56b374b569
3 changed files with 57 additions and 3 deletions

View file

@ -15,11 +15,18 @@ if backend_wayland
wl_proto_headers = []
wl_proto_src = []
foreach prot : [
wl_proto_xml = [
'../external/wlr-layer-shell-unstable-v1.xml',
wayland_protocols_datadir + '/stable/xdg-shell/xdg-shell.xml',
wayland_protocols_datadir + '/unstable/xdg-output/xdg-output-unstable-v1.xml']
if wayland_protocols.version().version_compare('>=1.32')
wl_proto_xml += [
wayland_protocols_datadir + '/staging/cursor-shape/cursor-shape-v1.xml',
wayland_protocols_datadir + '/unstable/tablet/tablet-unstable-v2.xml']
endif
foreach prot : wl_proto_xml
wl_proto_headers += custom_target(
prot.underscorify() + '-client-header',
output: '@BASENAME@.h',