summaryrefslogtreecommitdiff
path: root/src/wayland/meta-cursor-sprite-wayland.c
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2021-11-15 14:24:53 +0100
committerMarge Bot <marge-bot@gnome.org>2021-12-22 16:22:08 +0000
commit25ed64b61decc3e20bca6cd06f14287f19a8e626 (patch)
tree34ab68d6f8816f488627015812ff15a58425d4c9 /src/wayland/meta-cursor-sprite-wayland.c
parentc498ae337f57a67c6e678d549cf9a8070c32f251 (diff)
downloadmutter-25ed64b61decc3e20bca6cd06f14287f19a8e626.tar.gz
cursor-sprite: Register all cursor sprites with the cursor tracker
This will later be used to invalidate GPU state when closing device nodes. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2147>
Diffstat (limited to 'src/wayland/meta-cursor-sprite-wayland.c')
-rw-r--r--src/wayland/meta-cursor-sprite-wayland.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wayland/meta-cursor-sprite-wayland.c b/src/wayland/meta-cursor-sprite-wayland.c
index 40a8d10b0..fc265114b 100644
--- a/src/wayland/meta-cursor-sprite-wayland.c
+++ b/src/wayland/meta-cursor-sprite-wayland.c
@@ -64,11 +64,14 @@ meta_cursor_sprite_wayland_invalidate (MetaCursorSprite *sprite)
}
MetaCursorSpriteWayland *
-meta_cursor_sprite_wayland_new (MetaWaylandSurface *surface)
+meta_cursor_sprite_wayland_new (MetaWaylandSurface *surface,
+ MetaCursorTracker *cursor_tracker)
{
MetaCursorSpriteWayland *sprite_wayland;
- sprite_wayland = g_object_new (META_TYPE_CURSOR_SPRITE_WAYLAND, NULL);
+ sprite_wayland = g_object_new (META_TYPE_CURSOR_SPRITE_WAYLAND,
+ "cursor-tracker", cursor_tracker,
+ NULL);
sprite_wayland->surface = surface;
return sprite_wayland;