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.
icc-effect-5.14.5
Martin Gräßlin 2016-02-02 10:21:42 +01:00
parent b5cbca3617
commit 5e782ac93e
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}