summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-05-19 17:07:25 -0500
committerDudemanguy <random342@airmail.cc>2023-07-09 18:10:19 +0000
commit589da09e5a9f3bebf0fe3e81f191f988fd85ecc2 (patch)
treefd4e8b305588abb543248cb83344978b2511a010 /video/out/wayland_common.h
parentfc3e28f1e9be65e4c41812a84e86fbade7317847 (diff)
downloadmpv-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 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index 32394a24a0..1a26c7faaa 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -88,6 +88,11 @@ struct vo_wayland_state {
void *content_type;
int current_content_type;
+ /* cursor-shape */
+ /* TODO: unvoid these if required wayland protocols is bumped to 1.32+ */
+ void *cursor_shape_manager;
+ void *cursor_shape_device;
+
/* fractional-scale */
/* TODO: unvoid these if required wayland protocols is bumped to 1.31+ */
void *fractional_scale_manager;