mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-12-22 11:39:49 +01:00
gbm: don't select opaque pixel formats for cursor
This commit is contained in:
parent
a8eb8ae014
commit
9996d365ad
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ static SDRMFormat guessFormatFrom(std::vector<SDRMFormat> 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;
|
||||
|
|
Loading…
Reference in a new issue