summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authornanahi <130121847+na-na-hi@users.noreply.github.com>2024-02-13 00:12:24 -0500
committerDudemanguy <random342@airmail.cc>2024-02-17 16:09:41 +0000
commita593a9ec12b735e2d67234e7013816f7e0871174 (patch)
tree6f471c75866f872aa93a868cf0adad105cfa41bc /video/out/wayland_common.h
parent27d973ba342288aecf6dacd37cc7ea1f2f104a48 (diff)
downloadmpv-a593a9ec12b735e2d67234e7013816f7e0871174.tar.bz2
mpv-a593a9ec12b735e2d67234e7013816f7e0871174.tar.xz
wayland_common: handle cursor_shape_device per seat
The cursor_shape_device is per pointer, which is per seat. Handle it together with other seat objects. This in turn also handles cursor visibility per seat.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index 92b536fe0d..239bd148b8 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -22,6 +22,8 @@
#include "input/event.h"
#include "vo.h"
+struct vo_wayland_seat;
+
typedef struct {
uint32_t format;
uint32_t padding;
@@ -96,7 +98,6 @@ struct vo_wayland_state {
/* 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+ */
@@ -168,8 +169,7 @@ struct vo_wayland_state {
struct wl_surface *cursor_surface;
bool cursor_visible;
int allocated_cursor_scale;
- struct wl_pointer *pointer;
- uint32_t pointer_id;
+ struct vo_wayland_seat *cursor_seat;
};
bool vo_wayland_check_visible(struct vo *vo);