aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-16 15:25:59 +0100
committerGitHub <noreply@github.com>2018-05-16 15:25:59 +0100
commitf1fcc685b62d5c37c3b99ce6bfeb11ac1fa59ea6 (patch)
treef19454055cc02bdddb8335179793f4ebcc563f56 /backend
parent027ead2de7fd66c0c969c08e0341219f03599253 (diff)
parent6a46fcc6f2b436a964cd2a970db2df411eff82d8 (diff)
Merge pull request #983 from Ongy/drm_cursor_transform
update drm cursor matrix on set_transform
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c6
1 files changed, 3 insertions, 3 deletions
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);