mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:
parent
727e64dddf
commit
165b7369c8
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user