Commit a8a4c9a8 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

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

Cherry-pick of 2894913f
parent 3b037ed6
...@@ -262,6 +262,12 @@ public: ...@@ -262,6 +262,12 @@ public:
if (!waylandServer()->isScreenLocked()) { if (!waylandServer()->isScreenLocked()) {
return false; return false;
} }
auto client = qobject_cast<AbstractClient *>(input()->findToplevel(event->globalPos()));
if (client && client->isLockScreen()) {
workspace()->activateClient(client);
}
auto seat = waylandServer()->seat(); auto seat = waylandServer()->seat();
seat->setTimestamp(event->timestamp()); seat->setTimestamp(event->timestamp());
if (event->type() == QEvent::MouseMove) { if (event->type() == QEvent::MouseMove) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment