From 000081db1960236d1dadbbd4425ce24ca311e0bd Mon Sep 17 00:00:00 2001 From: Simon Ser <contact@emersion.fr> Date: Tue, 27 Jun 2023 10:48:24 +0200 Subject: cursor, output: apply viewport to cursor Instead of passing the scale, pass the source and destination boxes. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3676 --- include/wlr/types/wlr_output.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index f3ed7c10..1ec22cfe 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -40,7 +40,7 @@ struct wlr_output_cursor { bool enabled; bool visible; uint32_t width, height; - float scale; + struct wlr_fbox src_box; enum wl_output_transform transform; int32_t hotspot_x, hotspot_y; struct wlr_texture *texture; -- cgit v1.2.3