Standardize the wlr_box input paramaters

Fixes #1094
This commit is contained in:
Timidger 2018-12-21 13:56:10 -05:00
parent 82d36025e1
commit 9af0c5338f
No known key found for this signature in database
GPG key ID: 8084666B5E23A20F
11 changed files with 34 additions and 36 deletions

View file

@ -93,9 +93,9 @@ static bool output_set_cursor(struct wlr_output *wlr_output,
struct wlr_wl_backend *backend = output->backend;
struct wlr_box hotspot = { .x = hotspot_x, .y = hotspot_y };
wlr_box_transform(&hotspot,
wlr_box_transform(&hotspot, &hotspot,
wlr_output_transform_invert(wlr_output->transform),
output->cursor.width, output->cursor.height, &hotspot);
output->cursor.width, output->cursor.height);
// TODO: use output->wlr_output.transform to transform pixels and hotpot
output->cursor.hotspot_x = hotspot.x;