From 589da09e5a9f3bebf0fe3e81f191f988fd85ecc2 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Fri, 19 May 2023 17:07:25 -0500 Subject: 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. --- wscript_build.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'wscript_build.py') 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") -- cgit v1.2.3