From 3e739ff877c994c8e648bdad76796b8e0e7a99e9 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 28 Jan 2021 17:39:32 +0200 Subject: [PATCH] Simplify InputDeviceHandler::updateDecoration() --- input.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); }