From 921345bc2d3c9aa7a06a172367c09a2fa32d19ee Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Thu, 30 Oct 2025 20:53:48 -0400 Subject: [PATCH] lockscreenstate: Make lock screen call async This avoids blocking the shell when lock screen is requested --- components/mobileshellstate/lockscreendbusclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mobileshellstate/lockscreendbusclient.cpp b/components/mobileshellstate/lockscreendbusclient.cpp index 6e446717..03779936 100644 --- a/components/mobileshellstate/lockscreendbusclient.cpp +++ b/components/mobileshellstate/lockscreendbusclient.cpp @@ -37,7 +37,7 @@ void LockscreenDBusClient::lockScreen() QStringLiteral("/ScreenSaver"), QStringLiteral("org.freedesktop.ScreenSaver"), QStringLiteral("Lock")); - QDBusConnection::sessionBus().call(request); + QDBusConnection::sessionBus().asyncCall(request); } void LockscreenDBusClient::slotLockscreenActiveChanged(bool active)