mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -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. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403
This commit is contained in:
parent
0c9bbbe90e
commit
3252ef5dd7
@ -1829,7 +1829,7 @@ update_tablet_cursor_state (MetaSeatNative *seat,
|
|||||||
{
|
{
|
||||||
if (in)
|
if (in)
|
||||||
{
|
{
|
||||||
MetaCursorRenderer *renderer;
|
MetaCursorRendererNative *renderer;
|
||||||
|
|
||||||
if (!seat->tablet_cursors)
|
if (!seat->tablet_cursors)
|
||||||
{
|
{
|
||||||
@ -1837,7 +1837,7 @@ update_tablet_cursor_state (MetaSeatNative *seat,
|
|||||||
g_object_unref);
|
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);
|
g_hash_table_insert (seat->tablet_cursors, device, renderer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user