From 5e782ac93ea921d621e4547dd3631647a224213d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 2 Feb 2016 10:21:42 +0100 Subject: [PATCH] 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. --- input.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/input.cpp b/input.cpp index dd24c53122..f1ec719980 100644 --- a/input.cpp +++ b/input.cpp @@ -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; }