mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-21 06:59:44 -05:00
parent
82d36025e1
commit
9af0c5338f
11 changed files with 34 additions and 36 deletions
|
|
@ -637,8 +637,9 @@ static bool drm_connector_set_cursor(struct wlr_output *output,
|
|||
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);
|
||||
wlr_box_transform(&hotspot, &hotspot,
|
||||
wlr_output_transform_invert(output->transform),
|
||||
plane->surf.width, plane->surf.height);
|
||||
|
||||
if (plane->cursor_hotspot_x != hotspot.x ||
|
||||
plane->cursor_hotspot_y != hotspot.y) {
|
||||
|
|
@ -737,7 +738,7 @@ static bool drm_connector_move_cursor(struct wlr_output *output,
|
|||
|
||||
enum wl_output_transform transform =
|
||||
wlr_output_transform_invert(output->transform);
|
||||
wlr_box_transform(&box, transform, width, height, &box);
|
||||
wlr_box_transform(&box, &box, transform, width, height);
|
||||
|
||||
if (plane != NULL) {
|
||||
box.x -= plane->cursor_hotspot_x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue