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);
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue