Commit 8063740e authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[effects/translucency] Make inactive Wayland clients translucent

There is no concept of managed windows in Wayland, so every time we call
managed() on a Wayland client, it will return false.

This change addresses that problem by invoking managed() only for X11 clients.

CCBUG: 398100

Test Plan:
* Open KCM of the Translucency effect and decrease opacity of inactive windows;
* Open Dolphin;
* Click on desktop.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision:
parent 4e545f55
......@@ -185,7 +185,8 @@ var translucencyEffect = {
if (window === effects.activeWindow ||
window.managed === false ||
window.popup === true ||
(window.x11Client === true && window.managed === false) ||
window.desktopWindow === true ||
window.dock === true ||
window.visible === false ||
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