From 165b7369c88644867a7c0c2791c48826240b63b5 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. Part-of: --- src/backends/native/meta-seat-native.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/backends/native/meta-seat-native.c b/src/backends/native/meta-seat-native.c index 93c15318f..33412de5f 100644 --- a/src/backends/native/meta-seat-native.c +++ b/src/backends/native/meta-seat-native.c @@ -1858,7 +1858,7 @@ update_tablet_cursor_state (MetaSeatNative *seat_native, { if (in) { - MetaCursorRenderer *cursor_renderer; + MetaCursorRendererNative *cursor_renderer_native; if (!seat_native->tablet_cursors) { @@ -1866,9 +1866,10 @@ update_tablet_cursor_state (MetaSeatNative *seat_native, g_object_unref); } - cursor_renderer = meta_cursor_renderer_new (meta_get_backend (), device); + cursor_renderer_native = + meta_cursor_renderer_native_new (meta_get_backend (), device); g_hash_table_insert (seat_native->tablet_cursors, - device, cursor_renderer); + device, cursor_renderer_native); } else {