Merge branch 'gtk-cursor-wayland-hotspot' into 'gtk-3-24'

[gtk3] [wayland] Fix hotspot positioning with scaled surface.

See merge request GNOME/gtk!5159
This commit is contained in:
Matthias Clasen
2022-10-21 17:29:31 +00:00

View File

@@ -476,6 +476,8 @@ _gdk_wayland_display_get_cursor_for_surface (GdkDisplay *display,
cursor->surface.scale = (int)sx;
cursor->surface.width = cairo_image_surface_get_width (surface);
cursor->surface.height = cairo_image_surface_get_height (surface);
cursor->surface.hotspot_x *= sx;
cursor->surface.hotspot_y *= sx;
}
else
{