lockscreenstate: Make lock screen call async

This avoids blocking the shell when lock screen is requested
This commit is contained in:
Devin Lin 2025-10-30 20:53:48 -04:00
parent 678cd25a43
commit 921345bc2d

View file

@ -37,7 +37,7 @@ void LockscreenDBusClient::lockScreen()
QStringLiteral("/ScreenSaver"), QStringLiteral("/ScreenSaver"),
QStringLiteral("org.freedesktop.ScreenSaver"), QStringLiteral("org.freedesktop.ScreenSaver"),
QStringLiteral("Lock")); QStringLiteral("Lock"));
QDBusConnection::sessionBus().call(request); QDBusConnection::sessionBus().asyncCall(request);
} }
void LockscreenDBusClient::slotLockscreenActiveChanged(bool active) void LockscreenDBusClient::slotLockscreenActiveChanged(bool active)