Commit 7458926a authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Fix sleep and hibernate actions

We no longer use wayland to forward sleep and hibernate requests.


(cherry picked from commit 92af9696)
parent a5fb54f0
......@@ -469,7 +469,7 @@ void UnlockApp::suspendToRam()
m_ignoreRequests = true;
m_resetRequestIgnoreTimer->start();
org_kde_ksld_suspendSystem(m_ksldInterface);
PowerManagement::instance()->suspend();
}
void UnlockApp::suspendToDisk()
......@@ -481,7 +481,7 @@ void UnlockApp::suspendToDisk()
m_ignoreRequests = true;
m_resetRequestIgnoreTimer->start();
org_kde_ksld_hibernateSystem(m_ksldInterface);
PowerManagement::instance()->hibernate();
}
void UnlockApp::setTesting(bool enable)
......
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