From 18139f4d87a42d64a03af26aa750ff5e59ec6c89 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 8 May 2023 03:31:46 -0400 Subject: [PATCH] wlr_cursor: Don't multiply hotspot by scale^2 We are already multiplying in output_cursor_set_texture --- types/wlr_cursor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index 7c82c20d..fb267402 100644 --- a/types/wlr_cursor.c +++ b/types/wlr_cursor.c @@ -389,8 +389,8 @@ static void output_cursor_output_commit_surface( assert(output_cursor->surface != NULL); struct wlr_texture *texture = wlr_surface_get_texture(surface); - int32_t hotspot_x = output_cursor->surface_hotspot.x * output->scale; - int32_t hotspot_y = output_cursor->surface_hotspot.y * output->scale; + int32_t hotspot_x = output_cursor->surface_hotspot.x; + int32_t hotspot_y = output_cursor->surface_hotspot.y; output_cursor_set_texture(output_cursor->output_cursor, texture, false, surface->current.scale, surface->current.transform,