wayland: Support scaling of theme based cursors

Desktop / GNOME / GTK - Jonas Ã…dahl [gmail.com] - 16 March 2015 06:53 UTC

Support scaling of cursors created from themes. The default scale is always 1, but if the pointer cursor surface enters an output with a higher scale, load the larger version of the cursor theme and use the image from that theme.

This assumes the theme size is set to one that fits with an output scale
= 1.

https://bugzilla.gnome.org/show_bug.cgi?id=746141

465647e wayland: Support scaling of theme based cursors
gdk/wayland/gdkcursor-wayland.c | 79 ++++++++++++++++++++++++++++------
gdk/wayland/gdkdevice-wayland.c | 88 +++++++++++++++++++++++++++++++++++++-
gdk/wayland/gdkdisplay-wayland.c | 47 ++++++++++++++++++--
gdk/wayland/gdkdisplay-wayland.h | 7 ++-
gdk/wayland/gdkprivate-wayland.h | 12 +++++-
5 files changed, 213 insertions(+), 20 deletions(-)

Upstream: git.gnome.org


  • Share