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:
Martin Gräßlin 2016-02-02 10:21:42 +01:00
parent b5cbca3617
commit 5e782ac93e

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