[effects/diminactive] Dim Wayland clients

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

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16312
This commit is contained in:
Vlad Zagorodniy 2018-10-19 12:38:27 +03:00
parent ab5d66dc0f
commit 9f3a447a43

View file

@ -199,7 +199,11 @@ bool DimInactiveEffect::canDimWindow(const EffectWindow *w) const
return false;
}
if (!w->isManaged()) {
if (w->isPopupWindow()) {
return false;
}
if (w->isX11Client() && !w->isManaged()) {
return false;
}