From 9996d365ad245015a34b70f81e7894ac1d1c1c47 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 8 Sep 2024 00:49:01 +0100 Subject: [PATCH] gbm: don't select opaque pixel formats for cursor --- src/allocator/GBM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allocator/GBM.cpp b/src/allocator/GBM.cpp index 9a8ce74..b61b4a1 100644 --- a/src/allocator/GBM.cpp +++ b/src/allocator/GBM.cpp @@ -34,7 +34,7 @@ static SDRMFormat guessFormatFrom(std::vector formats, bool cursor, return *it; } - if (!scanout) { + if (!scanout || cursor /* don't set opaque for cursor plane */) { if (auto it = std::find_if(formats.begin(), formats.end(), [](const auto& f) { return f.drmFormat == DRM_FORMAT_ARGB8888 || f.drmFormat == DRM_FORMAT_ABGR8888; }); it != formats.end()) return *it;