Commit 3e739ff8 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Simplify InputDeviceHandler::updateDecoration()

parent afcd2e03
......@@ -2752,8 +2752,7 @@ bool InputDeviceHandler::updateDecoration()
auto *ac = qobject_cast<AbstractClient*>(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();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment