From 2894913f9362a8b5bb826532de032132711e4a9c Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 7 Apr 2021 18:54:51 +0200 Subject: [PATCH] lockscreen: also activate lock screen windows We are running a slightly different code path, make sure that we still honour conventions like screen focus. BUG: 427882 --- src/input.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/input.cpp b/src/input.cpp index 36a6292be0..ef70d0e981 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -282,6 +282,12 @@ public: if (!waylandServer()->isScreenLocked()) { return false; } + + auto client = qobject_cast(input()->findToplevel(event->globalPos())); + if (client && client->isLockScreen()) { + workspace()->activateClient(client); + } + auto seat = waylandServer()->seat(); seat->setTimestamp(event->timestamp()); if (event->type() == QEvent::MouseMove) {