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:
Robert Mader 2023-11-20 22:28:44 +01:00
parent 77bbe44251
commit 9ddb0371c6

View File

@ -340,7 +340,7 @@ meta_cursor_renderer_native_update_cursor (MetaCursorRenderer *cursor_renderer,
continue;
}
if (cursor_sprite)
if (cursor_sprite && !meta_backend_is_hw_cursors_inhibited (backend))
{
meta_cursor_sprite_realize_texture (cursor_sprite);