diff --git a/effects.cpp b/effects.cpp index a64099dd0c..9f765aa782 100644 --- a/effects.cpp +++ b/effects.cpp @@ -1736,7 +1736,8 @@ EffectWindowImpl::EffectWindowImpl(Toplevel *toplevel) managed = toplevel->isClient(); waylandClient = qobject_cast(toplevel) != nullptr; - x11Client = qobject_cast(toplevel) != nullptr; + x11Client = qobject_cast(toplevel) != nullptr || + qobject_cast(toplevel) != nullptr; } EffectWindowImpl::~EffectWindowImpl() @@ -1954,7 +1955,7 @@ QRegion EffectWindowImpl::shape() const if (isX11Client() && sceneWindow()) { return sceneWindow()->bufferShape(); } - return geometry(); + return toplevel->rect(); } QRect EffectWindowImpl::decorationInnerRect() const