Commit 3e1443e0 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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
parent ecac025a
...@@ -266,7 +266,7 @@ void WaylandClient::doSetActive() ...@@ -266,7 +266,7 @@ void WaylandClient::doSetActive()
void WaylandClient::updateDepth() void WaylandClient::updateDepth()
{ {
if (surface()->buffer()->hasAlphaChannel() && !isDesktop()) { if (surface()->buffer()->hasAlphaChannel()) {
setDepth(32); setDepth(32);
} else { } else {
setDepth(24); setDepth(24);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment