mirror of
https://github.com/brl/mutter.git
synced 2025-04-09 03:39:39 +00:00
cursor-renderer/native: Add a means to disable HW cursors
When dealing with a faulty hardware or bugs in the driver, it might be interesting to force the use of software cursors for debugging purposes. Add a debug environment variable MUTTER_DEBUG_DISABLE_HW_CURSORS to disable hardware cursors and force using software cursors. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2046 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2150>
This commit is contained in:
parent
65df817096
commit
56939abd2f
@ -1874,7 +1874,10 @@ meta_cursor_renderer_native_new (MetaBackend *backend,
|
|||||||
|
|
||||||
priv->backend = backend;
|
priv->backend = backend;
|
||||||
|
|
||||||
init_hw_cursor_support (cursor_renderer_native);
|
if (g_strcmp0 (getenv ("MUTTER_DEBUG_DISABLE_HW_CURSORS"), "1"))
|
||||||
|
init_hw_cursor_support (cursor_renderer_native);
|
||||||
|
else
|
||||||
|
g_message ("Disabling hardware cursors because MUTTER_DEBUG_DISABLE_HW_CURSORS is set");
|
||||||
|
|
||||||
return cursor_renderer_native;
|
return cursor_renderer_native;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user