mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 21:15:59 +01:00
Merge pull request #983 from Ongy/drm_cursor_transform
update drm cursor matrix on set_transform
This commit is contained in:
commit
f1fcc685b6
1 changed files with 3 additions and 3 deletions
|
@ -581,10 +581,10 @@ static bool drm_connector_set_cursor(struct wlr_output *output,
|
||||||
wlr_log_errno(L_ERROR, "Failed to create cursor bo");
|
wlr_log_errno(L_ERROR, "Failed to create cursor bo");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wlr_matrix_projection(plane->matrix, plane->surf.width,
|
wlr_matrix_projection(plane->matrix, plane->surf.width,
|
||||||
plane->surf.height, output->transform);
|
plane->surf.height, output->transform);
|
||||||
}
|
|
||||||
|
|
||||||
struct wlr_box hotspot = { .x = hotspot_x, .y = hotspot_y };
|
struct wlr_box hotspot = { .x = hotspot_x, .y = hotspot_y };
|
||||||
wlr_box_transform(&hotspot, wlr_output_transform_invert(output->transform),
|
wlr_box_transform(&hotspot, wlr_output_transform_invert(output->transform),
|
||||||
|
|
Loading…
Reference in a new issue