mirror of
https://github.com/brl/mutter.git
synced 2025-04-15 06:39:38 +00:00
cursor-renderer/native: Disable HW cursor when inhibited by backend
We need to disable the hardware cursor in some situations, notably when doing a screencast with clients that require an embedded cursor. While a API to do so is in place already, until now we didn't actually make use of it. Do so. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7007 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3412>
This commit is contained in:
parent
77bbe44251
commit
9ddb0371c6
@ -340,7 +340,7 @@ meta_cursor_renderer_native_update_cursor (MetaCursorRenderer *cursor_renderer,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cursor_sprite)
|
if (cursor_sprite && !meta_backend_is_hw_cursors_inhibited (backend))
|
||||||
{
|
{
|
||||||
meta_cursor_sprite_realize_texture (cursor_sprite);
|
meta_cursor_sprite_realize_texture (cursor_sprite);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user