diff --git a/input.cpp b/input.cpp index e9a4faa795..7e315eaa01 100644 --- a/input.cpp +++ b/input.cpp @@ -2752,8 +2752,7 @@ bool InputDeviceHandler::updateDecoration() auto *ac = qobject_cast(m_at.at); if (ac && ac->decoratedClient()) { - const QRect clientRect = QRect(ac->clientPos(), ac->clientSize()).translated(ac->pos()); - if (!clientRect.contains(position().toPoint())) { + if (!ac->clientGeometry().contains(position().toPoint())) { // input device above decoration m_focus.decoration = ac->decoratedClient(); }