From 6a46fcc6f2b436a964cd2a970db2df411eff82d8 Mon Sep 17 00:00:00 2001 From: Markus Ongyerth Date: Wed, 16 May 2018 15:14:57 +0200 Subject: recalculate cursor projection matrix on set_cursor Updates the projection matrix for the cursor plane in the DRM backend, when the cursor is set, so new cursor are uploaded with the correct transformation. --- backend/drm/drm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 30be40ea..7224cb3e 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -581,11 +581,11 @@ static bool drm_connector_set_cursor(struct wlr_output *output, wlr_log_errno(L_ERROR, "Failed to create cursor bo"); return false; } - - wlr_matrix_projection(plane->matrix, plane->surf.width, - plane->surf.height, output->transform); } + wlr_matrix_projection(plane->matrix, plane->surf.width, + plane->surf.height, output->transform); + struct wlr_box hotspot = { .x = hotspot_x, .y = hotspot_y }; wlr_box_transform(&hotspot, wlr_output_transform_invert(output->transform), plane->surf.width, plane->surf.height, &hotspot); -- cgit v1.2.3