wayland: Don't force a bpp of 24 for desktop windows

plasmashell provides the compositor buffers with an alpha channel and
without indicating the opaque region. Given that, kwin forces a bpp of
24 for desktop windows to improve performance. Unfortunately, there are
legit cases where plasma may attach a buffer that is not fully opaque,
for example when switching between activities.

BUG: 423545
BUG: 421237
This commit is contained in:
Vlad Zahorodnii 2020-10-02 18:35:33 +03:00
parent ecac025a2a
commit 3e1443e003

View file

@ -266,7 +266,7 @@ void WaylandClient::doSetActive()
void WaylandClient::updateDepth()
{
if (surface()->buffer()->hasAlphaChannel() && !isDesktop()) {
if (surface()->buffer()->hasAlphaChannel()) {
setDepth(32);
} else {
setDepth(24);