cursor-renderer: Pass backend to constructor

Then use the backend passed instead of the global singleton.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1289
This commit is contained in:
Jonas Ådahl
2020-05-27 09:29:04 +02:00
committed by Georges Basile Stavracas Neto
parent 7876018755
commit 55302dbb38
7 changed files with 87 additions and 14 deletions

View File

@ -931,7 +931,7 @@ meta_wayland_tablet_tool_update (MetaWaylandTabletTool *tool,
break;
case CLUTTER_PROXIMITY_IN:
if (!tool->cursor_renderer)
tool->cursor_renderer = meta_cursor_renderer_new ();
tool->cursor_renderer = meta_cursor_renderer_new (meta_get_backend ());
tool->current_tablet =
meta_wayland_tablet_seat_lookup_tablet (tool->seat,
clutter_event_get_source_device (event));