From 8063740efb868a6711d747c2e2559bd57398ead6 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Fri, 19 Oct 2018 18:12:34 +0300 Subject: [PATCH] [effects/translucency] Make inactive Wayland clients translucent Summary: 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: https://phabricator.kde.org/D16319 --- effects/translucency/package/contents/code/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effects/translucency/package/contents/code/main.js b/effects/translucency/package/contents/code/main.js index 69c051187d..d3ebf139ca 100644 --- a/effects/translucency/package/contents/code/main.js +++ b/effects/translucency/package/contents/code/main.js @@ -185,7 +185,8 @@ var translucencyEffect = { return; } 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 ||