diff options
author | Dudemanguy <random342@airmail.cc> | 2023-05-19 17:07:25 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-07-09 18:10:19 +0000 |
commit | 589da09e5a9f3bebf0fe3e81f191f988fd85ecc2 (patch) | |
tree | fd4e8b305588abb543248cb83344978b2511a010 /wscript_build.py | |
parent | fc3e28f1e9be65e4c41812a84e86fbade7317847 (diff) | |
download | mpv-589da09e5a9f3bebf0fe3e81f191f988fd85ecc2.tar.bz2 mpv-589da09e5a9f3bebf0fe3e81f191f988fd85ecc2.tar.xz |
wayland: add cursor-shape-v1 support
This protocol no longer requires us to draw a separate cursor surface
and all of that horrible stuff. We can just ask the compositor for the
default cursor instead since that's literally all mpv cares about.
Diffstat (limited to 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py index 9650bf94d3..1de54698ea 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -163,6 +163,20 @@ def build(ctx): protocol = "staging/fractional-scale/fractional-scale-v1", target = "generated/wayland/fractional-scale-v1.h") + if ctx.dependency_satisfied('wayland-protocols-1-32'): + ctx.wayland_protocol_code(proto_dir = ctx.env.WL_PROTO_DIR, + protocol = "staging/cursor-shape/cursor-shape-v1", + target = "generated/wayland/cursor-shape-v1.c") + ctx.wayland_protocol_header(proto_dir = ctx.env.WL_PROTO_DIR, + protocol = "staging/cursor-shape/cursor-shape-v1", + target = "generated/wayland/cursor-shape-v1.h") + ctx.wayland_protocol_code(proto_dir = ctx.env.WL_PROTO_DIR, + protocol = "unstable/tablet/tablet-unstable-v2", + target = "generated/wayland/tablet-unstable-v2.c") + ctx.wayland_protocol_header(proto_dir = ctx.env.WL_PROTO_DIR, + protocol = "unstable/tablet/tablet-unstable-v2", + target = "generated/wayland/tablet-unstable-v2.h") + ctx(features = "ebml_header", target = "generated/ebml_types.h") ctx(features = "ebml_definitions", target = "generated/ebml_defs.inc") |