Also consider the AcquiringLock state as a locked screen

KSld goes to state AcquiringLock when starting the greeter process.
During this state it expects the input to be grabbed. So from KWin
perspective this means that the screen is locked and KWin should
filter out input events.
icc-effect-5.14.5
Martin Gräßlin 2016-02-02 10:19:46 +01:00
parent 8ea4f4dae7
commit b5cbca3617
1 changed files with 2 additions and 1 deletions

View File

@ -509,7 +509,8 @@ quint16 WaylandServer::createClientId(ClientConnection *c)
bool WaylandServer::isScreenLocked() const
{
return ScreenLocker::KSldApp::self()->lockState() == ScreenLocker::KSldApp::Locked;
return ScreenLocker::KSldApp::self()->lockState() == ScreenLocker::KSldApp::Locked ||
ScreenLocker::KSldApp::self()->lockState() == ScreenLocker::KSldApp::AcquiringLock;
}
}