diff options
author | emersion <contact@emersion.fr> | 2017-12-14 23:59:04 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-14 23:59:04 +0100 |
commit | 6b42bfad18f7bcb08ef031c699159d40ff6ac2a0 (patch) | |
tree | c8c24d5cf48c8a7487499d37da92e1bf7da419b9 /backend/drm/drm.c | |
parent | b884025558e750268a06818dc63bc46716c75843 (diff) | |
parent | 23fb663ea4eaff436d9bfab7f74cdd298fac44c5 (diff) |
Merge branch 'master' into xwm-selection
Diffstat (limited to 'backend/drm/drm.c')
-rw-r--r-- | backend/drm/drm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index ba203791..96b7d93d 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -565,8 +565,7 @@ static bool wlr_drm_connector_set_cursor(struct wlr_output *output, enum wl_output_transform transform = wlr_output_transform_invert(output->transform); struct wlr_box transformed_hotspot; - wlr_output_transform_apply_to_box(transform, &hotspot, - &transformed_hotspot); + wlr_box_transform(&hotspot, transform, &transformed_hotspot); plane->cursor_hotspot_x = transformed_hotspot.x; plane->cursor_hotspot_y = transformed_hotspot.y; @@ -628,7 +627,7 @@ static bool wlr_drm_connector_move_cursor(struct wlr_output *output, enum wl_output_transform transform = wlr_output_transform_invert(output->transform); struct wlr_box transformed_box; - wlr_output_transform_apply_to_box(transform, &box, &transformed_box); + wlr_box_transform(&box, transform, &transformed_box); if (plane != NULL) { transformed_box.x -= plane->cursor_hotspot_x; |