Simplify InputDeviceHandler::updateDecoration()
This commit is contained in:
parent
afcd2e031b
commit
3e739ff877
1 changed files with 1 additions and 2 deletions
|
@ -2752,8 +2752,7 @@ bool InputDeviceHandler::updateDecoration()
|
||||||
|
|
||||||
auto *ac = qobject_cast<AbstractClient*>(m_at.at);
|
auto *ac = qobject_cast<AbstractClient*>(m_at.at);
|
||||||
if (ac && ac->decoratedClient()) {
|
if (ac && ac->decoratedClient()) {
|
||||||
const QRect clientRect = QRect(ac->clientPos(), ac->clientSize()).translated(ac->pos());
|
if (!ac->clientGeometry().contains(position().toPoint())) {
|
||||||
if (!clientRect.contains(position().toPoint())) {
|
|
||||||
// input device above decoration
|
// input device above decoration
|
||||||
m_focus.decoration = ac->decoratedClient();
|
m_focus.decoration = ac->decoratedClient();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue