Set focusedPointerSurface to null when screen is locked and no greeter window
We want to get leave events on the previously focused surface when the screen is locked.
This commit is contained in:
parent
b5cbca3617
commit
5e782ac93e
1 changed files with 6 additions and 0 deletions
|
@ -714,6 +714,12 @@ void InputRedirection::processPointerMotion(const QPointF &pos, uint32_t time)
|
|||
seat->setTimestamp(time);
|
||||
seat->setPointerPos(m_globalPointer);
|
||||
}
|
||||
} else {
|
||||
if (auto seat = findSeat()) {
|
||||
seat->setFocusedPointerSurface(nullptr);
|
||||
seat->setTimestamp(time);
|
||||
seat->setPointerPos(m_globalPointer);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue