From 3252ef5dd79030ff9bf252f274fac658c97e5d3e Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 31 Jul 2020 18:35:19 +0200 Subject: [PATCH] backends: Use also a native cursor renderer for tablets This will resort to SW rendering if this cursor renderer does not own the MetaKmsCursorRenderer, so it's pretty much equivalent thus far, except we may now implement logic to flip the kms cursor renderer around. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403 --- src/backends/native/meta-seat-native.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/native/meta-seat-native.c b/src/backends/native/meta-seat-native.c index db8e46c37..26ce1ba70 100644 --- a/src/backends/native/meta-seat-native.c +++ b/src/backends/native/meta-seat-native.c @@ -1829,7 +1829,7 @@ update_tablet_cursor_state (MetaSeatNative *seat, { if (in) { - MetaCursorRenderer *renderer; + MetaCursorRendererNative *renderer; if (!seat->tablet_cursors) { @@ -1837,7 +1837,7 @@ update_tablet_cursor_state (MetaSeatNative *seat, g_object_unref); } - renderer = meta_cursor_renderer_new (meta_get_backend (), device); + renderer = meta_cursor_renderer_native_new (meta_get_backend (), device); g_hash_table_insert (seat->tablet_cursors, device, renderer); } else