wayland: scale cursors to the right size
authorMatthias Clasen <mclasen@redhat.com>
Fri, 27 May 2022 14:10:27 +0000 (10:10 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 27 May 2022 17:05:18 +0000 (13:05 -0400)
commit75821de2d7e545d0a019dae846b0c5aaeacd0b36
treeba76544cf88b5b1cb5e39f6ff10dcdb2bbc5a7d2
parent91d2e1bc7f516a13b704246b3e66f389d09240ea
wayland: scale cursors to the right size

When loading cursors at scale, we expect the
cursor images to have a size of scale * size.
If we don't find such images, load them at their
unscaled size and scale them up ourselves.

Without this, cursors will appear in unexpected
sizes depending on scales and themes.

Related: #4746
gdk/wayland/cursor/wayland-cursor.c