From 13098a18eaa8e6edd56f7f8c508b030f91dae67e Mon Sep 17 00:00:00 2001 From: emersion Date: Wed, 9 May 2018 19:58:18 +0100 Subject: Fix hardware cursors scale & transform --- include/backend/wayland.h | 1 + include/wlr/interfaces/wlr_output.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/backend/wayland.h b/include/backend/wayland.h index fec328ba..fda27da9 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -55,6 +55,7 @@ struct wlr_wl_output { struct wl_surface *surface; struct wl_egl_window *egl_window; int32_t hotspot_x, hotspot_y; + int32_t width, height; } cursor; }; diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h index d8c54067..7ecc7551 100644 --- a/include/wlr/interfaces/wlr_output.h +++ b/include/wlr/interfaces/wlr_output.h @@ -14,6 +14,7 @@ struct wlr_output_impl { void (*transform)(struct wlr_output *output, enum wl_output_transform transform); bool (*set_cursor)(struct wlr_output *output, struct wlr_texture *texture, + int32_t scale, enum wl_output_transform transform, int32_t hotspot_x, int32_t hotspot_y, bool update_texture); bool (*move_cursor)(struct wlr_output *output, int x, int y); void (*destroy)(struct wlr_output *output); -- cgit v1.2.3