Implement support for KMS cursor plane capture (#1981)

This commit is contained in:
Cameron Gutman 2024-01-05 23:02:39 -06:00 committed by GitHub
commit f88df0f596
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 329 additions and 55 deletions

View file

@ -758,11 +758,6 @@ namespace platf {
#ifdef SUNSHINE_BUILD_DRM
if (config::video.capture.empty() || config::video.capture == "kms") {
if (verify_kms()) {
if (window_system == window_system_e::WAYLAND) {
// On Wayland, using KMS, the cursor is unreliable.
// Hide it by default
display_cursor = false;
}
sources[source::KMS] = true;
}
}